# HG changeset patch
# User Albert Lee <[EMAIL PROTECTED]>
# Date 1178288905 14400
# Node ID 9e82239118b8719b4e3d3860cf39993c4025f6b5
# Parent  d4e42a096b7822fccacf2d387bd2b21ac94bd9f9
Remove use of asprintf.

diff -r 9e82239118b8719b4e3d3860cf39993c4025f6b5 -r 
d4e42a096b7822fccacf2d387bd2b21ac94bd9f9 src/ui.c
--- a/src/ui.c  Fri May 04 10:28:25 2007 -0400
+++ b/src/ui.c  Fri May 04 00:11:05 2007 +0100
@@ -918,9 +918,9 @@ static void ui_load_icons (void)
   int i;
   for (i = 0; i < G_N_ELEMENTS (icons); ++i)
   {
-    asprintf (&name, "%s.%s", icons[i][1], fmt ? "svg" : "png");
+       char name[128];
+    snprintf (name, sizeof(name), "%s.%s", icons[i][1], fmt ? "svg" : "png");
     ui_std_icon (ifactory, icons[i][0], name);
-    free (name);
   }
 
 #ifdef WITH_OBSOLETE

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Xine-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xine-cvslog

Reply via email to