Sophie

Sophie

distrib > Mandriva > 2010.1 > i586 > media > main-testing-src > by-pkgid > a67a978d367abb5bfdbdda5b752404f5 > files > 1

gkrellm-2.3.4-10mdv2010.1.src.rpm

Index: gkrellm-2.3.2/src/main.c
===================================================================
--- gkrellm-2.3.2/src/main.c
+++ gkrellm-2.3.2/src/main.c	2009-05-20 14:42:37.000000000 +0200
@@ -1827,7 +1827,7 @@
 	gint	i;
 
 	for (i = 0; i < sizeof(usage_string) / sizeof(gchar *); ++i)
-		g_print(_(usage_string[i]));
+		g_print("%s", _(usage_string[i]));
 	}
 
 
Index: gkrellm-2.3.2/server/main.c
===================================================================
--- gkrellm-2.3.2/server/main.c
+++ gkrellm-2.3.2/server/main.c	2009-05-20 14:48:32.000000000 +0200
@@ -175,7 +175,7 @@
 	if (log_level & G_LOG_LEVEL_CRITICAL)
 		facility_priority = LOG_MAKEPRI(LOG_DAEMON, LOG_CRIT);
 
-	syslog(facility_priority, message);
+	syslog(facility_priority, "%s", message);
 #endif // defined(WIN32)
 	} // gkrellmd_syslog_log()
 
@@ -485,7 +485,7 @@
 
 	snprintf(buf, sizeof(buf), _("Connection not allowed from %s\n"),
 			hostname ? hostname : addr);
-	g_warning(buf),
+	g_warning("%s", buf),
 	gkrellmd_send_to_client(client, "<error>\n");
 	gkrellmd_send_to_client(client, buf);
 	return FALSE;