mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-22 22:23:38 -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,8 +322,7 @@ int main(int argc, char* argv[]) {
|
||||||
memset(ctmp, 0, len);
|
memset(ctmp, 0, len);
|
||||||
strcpy(ctmp, "script run ");
|
strcpy(ctmp, "script run ");
|
||||||
strcpy(&ctmp[11], script_cmd);
|
strcpy(&ctmp[11], script_cmd);
|
||||||
strcpy(script_cmd, ctmp);
|
script_cmd = ctmp;
|
||||||
free(ctmp);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue