small memory management bugfix

This commit is contained in:
merlokk 2017-10-13 19:31:03 +03:00
commit d9bcabb93b

View file

@ -322,8 +322,7 @@ int main(int argc, char* argv[]) {
memset(ctmp, 0, len);
strcpy(ctmp, "script run ");
strcpy(&ctmp[11], script_cmd);
strcpy(script_cmd, ctmp);
free(ctmp);
script_cmd = ctmp;
}
}