[Mplayer-cvslog] CVS: main/libmpdemux dvdauth.c,1.8,1.9

pl pl at mplayer.dev.hu
Mon Dec 24 11:35:45 CET 2001


Update of /cvsroot/mplayer/main/libmpdemux
In directory mplayer:/var/tmp.root/cvs-serv11438/libmpdemux

Modified Files:
	dvdauth.c 
Log Message:
memset is more portable than bzero ("BSD"ism)


Index: dvdauth.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/dvdauth.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- dvdauth.c	14 Aug 2001 12:17:38 -0000	1.8
+++ dvdauth.c	24 Dec 2001 10:35:43 -0000	1.9
@@ -92,7 +92,7 @@
     fp=popen(cmd,"r");
     if (fp) {
 	    int ret;
-	    bzero(cmd,sizeof(cmd));
+	    memset(cmd,0,sizeof(cmd));
 	    fgets(cmd,99,fp);
 	    if ((ret=pclose(fp)))
 		    fprintf(stderr,"fibmap_mplayer: %s\n",*cmd?cmd:"no error info");
@@ -158,7 +158,7 @@
 {
 	unsigned char *t=key_title;
 	int digit=4,len;
-	bzero(key_title,sizeof(key_title));
+	memset(key_title,0,sizeof(key_title));
 //	printf("DVD key: %s\n",hexkey);
 	for (len=0;len<10;len++) {
 //		printf("-> %c\n",*hexkey);




More information about the MPlayer-cvslog mailing list