[Mplayer-cvslog] CVS: main/libmpdvdkit dvd_reader.c,1.2,1.3

Zoltan Ponekker pontscho at mplayerhq.hu
Thu Apr 25 19:34:05 CEST 2002


Update of /cvsroot/mplayer/main/libmpdvdkit
In directory mail:/var/tmp.root/cvs-serv24181

Modified Files:
	dvd_reader.c 
Log Message:
fix calloc

Index: dvd_reader.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdvdkit/dvd_reader.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- dvd_reader.c	25 Apr 2002 07:33:45 -0000	1.2
+++ dvd_reader.c	25 Apr 2002 17:34:02 -0000	1.3
@@ -294,7 +294,7 @@
 	  fclose( img );
 	 } else strcpy( discid,"tmp" );
 
-	if ( (dvd_key_dir=(char *)calloc( 1,strlen( dir ) + 17 )) == NULL ) return 0;
+	if ( (dvd_key_dir=(char *)calloc( 1,strlen( dir ) + 18 )) == NULL ) return 0;
 	sprintf( dvd_key_dir,"%s/%.16s",dir,discid );
 	mkdir( dvd_key_dir,493 );
 




More information about the MPlayer-cvslog mailing list