mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-22 14:13:42 -07:00
small fix in executing command files
This commit is contained in:
parent
d9bcabb93b
commit
c30f7bf438
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ void main_loop(char *script_cmds_file, char *script_cmd, bool usb_present) {
|
|||
// If there is a script command
|
||||
if (execCommand){
|
||||
if ((cmd = (char*) malloc(strlen(script_cmd) + 1)) != NULL) {
|
||||
memset(cmd, 0, strlen(script_cmd));
|
||||
memset(cmd, 0, strlen(script_cmd) + 1);
|
||||
strcpy(cmd, script_cmd);
|
||||
printf(PROXPROMPT"%s\n", cmd);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue