mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-22 14:13:42 -07:00
small memory management bugfix
This commit is contained in:
parent
a405360f7b
commit
d9bcabb93b
1 changed files with 2 additions and 3 deletions
|
@ -322,9 +322,8 @@ 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;
|
||||
}
|
||||
}
|
||||
|
||||
printf("Execute command from commandline: %s\n", script_cmd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue