add proper casts around gsize calculation

This commit is contained in:
Landry Breuil
2018-12-10 07:59:16 +01:00
parent b4266a20f8
commit 203514ff96

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 - (p - text)));
memmove (text, p, (gsize)(text_size - (gsize)(p - text)));
}
}
}