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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user