diff libmpdemux/stream_dvd.c @ 18366:d18fc000093d

100000l to the fools who don't know C These were all found while auditing for malloc(A*B) type bugs. Removing them makes it easier to find real incorrect usage and makes the code more readable.
author rfelker
date Mon, 01 May 2006 02:04:09 +0000
parents 4231482179b6
children bee3186a06f7
line wrap: on
line diff
--- a/libmpdemux/stream_dvd.c	Sun Apr 30 22:28:15 2006 +0000
+++ b/libmpdemux/stream_dvd.c	Mon May 01 02:04:09 2006 +0000
@@ -518,7 +518,7 @@
     /* Dynamic DVD drive selection on Darwin */
     if(!strcmp(dvd_device, "/dev/rdiskN")) {
       int i;
-      char *temp_device = malloc((strlen(dvd_device)+1)*sizeof(char));
+      char *temp_device = malloc(strlen(dvd_device)+1);
 
       for (i = 1; i < 10; i++) {
         sprintf(temp_device, "/dev/rdisk%d", i);