Fix g_snprintf call for task name

Don't pass task name as format, instead call g_snprintf safely with "%s"
and pass the task name as an argument.
This commit is contained in:
Mike Massonnet
2010-06-03 23:46:55 +02:00
parent 7b60724473
commit bb4c139c73

View File

@@ -127,7 +127,7 @@ pretty_cmdline (gchar *cmdline, gchar *comm)
gchar *p = g_strstr_len (text, -1, comm);
if (p != NULL)
{
g_snprintf (text, g_utf8_strlen (text, -1), p);
g_snprintf (text, g_utf8_strlen (text, -1), "%s", p);
}
}
}