[Mplayer-cvslog] CVS: main/drivers mga_vid.c,1.48,1.49

Dariush Pietrzak CVS eyck at mplayerhq.hu
Thu Feb 13 10:34:54 CET 2003


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

Modified Files:
	mga_vid.c 
Log Message:
Fix for string handling bug from Alex Beregszasz


Index: mga_vid.c
===================================================================
RCS file: /cvsroot/mplayer/main/drivers/mga_vid.c,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -r1.48 -r1.49
--- mga_vid.c	25 Jul 2002 21:34:24 -0000	1.48
+++ mga_vid.c	13 Feb 2003 09:34:37 -0000	1.49
@@ -1416,14 +1416,14 @@
 {
     unsigned len;
     len = 0;
-    len += sprintf(&mga_param_buff[len],"Interface version: %04X\n",MGA_VID_VERSION);
-    len += sprintf(&mga_param_buff[len],"Memory: %x:%dM\n",mga_mem_base,(unsigned int) mga_ram_size);
-    len += sprintf(&mga_param_buff[len],"MMIO: %p\n",mga_mmio_base);
-    len += sprintf(&mga_param_buff[len],"Configurable stuff:\n");
-    len += sprintf(&mga_param_buff[len],"~~~~~~~~~~~~~~~~~~~\n");
-    len += sprintf(&mga_param_buff[len],PARAM_BRIGHTNESS"%d\n",mga_brightness);
-    len += sprintf(&mga_param_buff[len],PARAM_CONTRAST"%d\n",mga_contrast);
-    len += sprintf(&mga_param_buff[len],PARAM_BLACKIE"%s\n",regs.blackie?"on":"off");
+    len += sprintf(&mga_param_buff[len]-len,"Interface version: %04X\n",MGA_VID_VERSION);
+    len += sprintf(&mga_param_buff[len]-len,"Memory: %x:%dM\n",mga_mem_base,(unsigned int) mga_ram_size);
+    len += sprintf(&mga_param_buff[len]-len,"MMIO: %p\n",mga_mmio_base);
+    len += sprintf(&mga_param_buff[len]-len ,"Configurable stuff:\n");
+    len += sprintf(&mga_param_buff[len]-len,"~~~~~~~~~~~~~~~~~~~\n");
+    len += sprintf(&mga_param_buff[len]-len,PARAM_BRIGHTNESS"%d\n",mga_brightness);
+    len += sprintf(&mga_param_buff[len]-len,PARAM_CONTRAST"%d\n",mga_contrast);
+    len += sprintf(&mga_param_buff[len]-len,PARAM_BLACKIE"%s\n",regs.blackie?"on":"off");
     mga_param_buff_len = len;
     // check boundaries of mga_param_buff before writing to it!!!
 }



More information about the MPlayer-cvslog mailing list