From: <dg...@us...> - 2006-06-29 14:08:16
|
Update of /cvsroot/xine/xine-ui/src/xitk/xine-toolkit In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv16476/src/xitk/xine-toolkit Modified Files: window.c Log Message: Fix all non-literals used as format parameter with no arguments. There shouldn't have been security risks, but better safe than sorry. Index: window.c =================================================================== RCS file: /cvsroot/xine/xine-ui/src/xitk/xine-toolkit/window.c,v retrieving revision 1.51 retrieving revision 1.52 diff -u -r1.51 -r1.52 --- window.c 31 Dec 2004 00:52:15 -0000 1.51 +++ window.c 29 Jun 2006 14:08:13 -0000 1.52 @@ -1088,7 +1088,7 @@ char buf2[(strlen(buf) * 2) + 1]; xitk_subst_special_chars(buf, buf2); xw = xitk_window_dialog_one_button_with_width(im, title, _("OK"), cb, userdata, window_width, - align, buf2); + align, "%s", buf2); } XITK_FREE(buf); return xw; @@ -1337,7 +1337,7 @@ xitk_subst_special_chars(buf, buf2); xw = xitk_window_dialog_two_buttons_with_width(im, title, _("Yes"), _("No"), - ycb, ncb, userdata, window_width, align, buf2); + ycb, ncb, userdata, window_width, align, "%s", buf2); } XITK_FREE(buf); @@ -1559,7 +1559,7 @@ xitk_subst_special_chars(buf, buf2); xw = xitk_window_dialog_three_buttons_with_width(im, title, _("Yes"), _("No"), _("Cancel"), - ycb, ncb, ccb, userdata, window_width, align, buf2); + ycb, ncb, ccb, userdata, window_width, align, "%s", buf2); } XITK_FREE(buf); return xw; |