Make valngrind happy: correct calculate mem size to move
This commit is contained in:
@@ -172,7 +172,7 @@ pretty_cmdline (gchar *cmdline, gchar *comm)
|
|||||||
gchar *p = g_strstr_len (text, (gssize)text_size, comm);
|
gchar *p = g_strstr_len (text, (gssize)text_size, comm);
|
||||||
if (p != NULL)
|
if (p != NULL)
|
||||||
{
|
{
|
||||||
memmove (text, p, text_size);
|
memmove (text, p, (text_size - (p - text)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user