[MPlayer-cvslog] r22422 - trunk/stream/stream_dvd.c

nicodvb subversion at mplayerhq.hu
Sat Mar 3 14:39:46 CET 2007


Author: nicodvb
Date: Sat Mar  3 14:39:46 2007
New Revision: 22422

Modified:
   trunk/stream/stream_dvd.c

Log:
10000l; in previous commit I allocated a buffer 1 byte too short

Modified: trunk/stream/stream_dvd.c
==============================================================================
--- trunk/stream/stream_dvd.c	(original)
+++ trunk/stream/stream_dvd.c	Sat Mar  3 14:39:46 2007
@@ -795,7 +795,7 @@ static int open_s(stream_t *stream,int m
     /* Dynamic DVD drive selection on Darwin */
     if(!strcmp(dvd_device, "/dev/rdiskN")) {
       int i;
-      size_t len = strlen(dvd_device);
+      size_t len = strlen(dvd_device)+1;
       char *temp_device = malloc(len);
 
       for (i = 1; i < 10; i++) {



More information about the MPlayer-cvslog mailing list