diff console/libgnt/gntwm.c @ 15196:92ebda7a7afc

[gaim-migrate @ 17985] Jonathan Brossard (endrazine) found some more places where we were passing normal strings to printf as format strings, which could cause problems when printing text containing the % character. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 13 Dec 2006 11:10:32 +0000
parents 67ccc195074b
children 7d682fc9098f
line wrap: on
line diff
--- a/console/libgnt/gntwm.c	Wed Dec 13 10:46:44 2006 +0000
+++ b/console/libgnt/gntwm.c	Wed Dec 13 11:10:32 2006 +0000
@@ -431,11 +431,11 @@
 				if (now & attr)  \
 				{  \
 					if (!(old & attr))  \
-						fprintf(file, start);  \
+						fprintf(file, "%s", start);  \
 				}  \
 				else if (old & attr)  \
 				{  \
-					fprintf(file, end);  \
+					fprintf(file, "%s", end);  \
 				}  \
 			} while (0)