mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
fix: passing a struct.
This commit is contained in:
parent
e6315b88a1
commit
f8f39d6196
5 changed files with 7 additions and 6 deletions
|
@ -157,7 +157,7 @@ main_loop(char *script_cmds_file, char *script_cmd, bool pm3_present) {
|
|||
// clear array
|
||||
memset(script_cmd_buf, 0, sizeof(script_cmd_buf));
|
||||
// get
|
||||
if (!fgets(script_cmd_buf, sizeof(script_cmd_buf), stdin)) {
|
||||
if (fgets(script_cmd_buf, sizeof(script_cmd_buf), stdin) == NULL) {
|
||||
PrintAndLogEx(ERR, "STDIN unexpected end, exit...");
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue