Commit 1b4faa8d authored by Raphael Defosseux's avatar Raphael Defosseux
Browse files

fix added cppcheck errors


Signed-off-by: Raphael Defosseux's avatarRaphael Defosseux <raphael.defosseux@eurecom.fr>
parent aa6b36a6
......@@ -102,8 +102,8 @@ static int baseRunTimeCommand(char* cmd) {
fp = popen(cmd, "r");
memset(cmd, 1, 200);
retSize = fread(cmd, 1, 200, fp);
memset(cmd, 1, sizeof(*cmd));
retSize = fread(cmd, 1, sizeof(*cmd), fp);
fclose(fp);
if (retSize == 0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment