Make valngrind happy: correct calculate mem size to move

This commit is contained in:
rim
2018-12-09 13:00:41 +03:00
committed by Landry Breuil
parent 8af2631e10
commit b4266a20f8

View File

@@ -172,7 +172,7 @@ pretty_cmdline (gchar *cmdline, gchar *comm)
gchar *p = g_strstr_len (text, (gssize)text_size, comm);
if (p != NULL)
{
memmove (text, p, text_size);
memmove (text, p, (text_size - (p - text)));
}
}
}