[Mplayer-cvslog] CVS: 0_90/libmenu menu_console.c,1.4,1.5

Diego Biurrun CVS syncmail at mplayerhq.hu
Thu Jul 1 12:22:29 CEST 2004


CVS change done by Diego Biurrun CVS

Update of /cvsroot/mplayer/0_90/libmenu
In directory mail:/var2/tmp/cvs-serv26448/libmenu

Modified Files:
	menu_console.c 
Log Message:
string handling security fixes ported from main


Index: menu_console.c
===================================================================
RCS file: /cvsroot/mplayer/0_90/libmenu/menu_console.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- menu_console.c	27 Nov 2002 16:12:02 -0000	1.4
+++ menu_console.c	1 Jul 2004 10:22:27 -0000	1.5
@@ -148,8 +148,10 @@
     return;
   }
   priv->lines[ll] = realloc(priv->lines[ll],strlen(priv->lines[ll]) + strlen(l) + 1);
-  strcat(priv->lines[ll],l);
-  
+  if ( priv->lines[ll] != NULL )
+  {
+    strcat(priv->lines[ll],l);
+  }
 }
 
 static void draw(menu_t* menu, mp_image_t* mpi) {




More information about the MPlayer-cvslog mailing list