[MPlayer-cvslog] CVS: main subreader.c,1.140,1.141

Sascha Sommer CVS syncmail at mplayerhq.hu
Fri Feb 4 19:31:05 CET 2005


CVS change done by Sascha Sommer CVS

Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv14202

Modified Files:
	subreader.c 
Log Message:
bzero is deprecated patch by  Gianluigi Tiesi <mplayer at netfarm.it>

Index: subreader.c
===================================================================
RCS file: /cvsroot/mplayer/main/subreader.c,v
retrieving revision 1.140
retrieving revision 1.141
diff -u -r1.140 -r1.141
--- subreader.c	18 Oct 2004 20:56:11 -0000	1.140
+++ subreader.c	4 Feb 2005 18:31:03 -0000	1.141
@@ -819,10 +819,10 @@
     static unsigned jacoTimeres = 30;
     static int jacoShift = 0;
 
-    bzero(current, sizeof(subtitle));
-    bzero(line1, LINE_LEN);
-    bzero(line2, LINE_LEN);
-    bzero(directive, LINE_LEN);
+    memset(current, 0, sizeof(subtitle));
+    memset(line1, 0, LINE_LEN);
+    memset(line2, 0, LINE_LEN);
+    memset(directive, 0, LINE_LEN);
     while (!current->text[0]) {
 	if (!fgets(line1, LINE_LEN, fd)) {
 	    return NULL;




More information about the MPlayer-cvslog mailing list