diff options
Diffstat (limited to 'tools/msm_execute_helper.c')
-rw-r--r-- | tools/msm_execute_helper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/msm_execute_helper.c b/tools/msm_execute_helper.c index 5d568b4..bf348e2 100644 --- a/tools/msm_execute_helper.c +++ b/tools/msm_execute_helper.c @@ -5,8 +5,8 @@ int main(int argc, char* argv[]) { - gchar **argv_modified = g_new0 (gchar *, argc + 1); - memcpy (argv_modified, argv, argc * sizeof (char*)); + gchar **argv_modified = g_new0 (gchar *, (size_t)(argc + 1)); + memcpy (argv_modified, argv, (size_t)(argc) * sizeof (char*)); argv_modified[0] = COMMAND; int errsv = 0; |