diff options
author | rbuj <[email protected]> | 2022-08-07 13:14:51 +0200 |
---|---|---|
committer | Luke from DC <[email protected]> | 2022-08-19 00:46:15 +0000 |
commit | af9f244bb0706fe41bd41d6a04f6606dcb62746a (patch) | |
tree | 3385aec9136367fc5db52a40c919e2c479ac79c5 | |
parent | 2b767be06f5b5b602e56740275784bb9bf3474c3 (diff) | |
download | mate-system-monitor-af9f244bb0706fe41bd41d6a04f6606dcb62746a.tar.bz2 mate-system-monitor-af9f244bb0706fe41bd41d6a04f6606dcb62746a.tar.xz |
msm_execute_helper: Fix -Wsign-conversion warning
-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; |