From 715fdbffcde21b49dcb2fb48fe905dbba705e880 Mon Sep 17 00:00:00 2001 From: merlokk Date: Wed, 18 Oct 2017 15:40:43 +0300 Subject: [PATCH] small fix --- client/proxmark3.c | 1 + 1 file changed, 1 insertion(+) diff --git a/client/proxmark3.c b/client/proxmark3.c index 8f401826..d0e68b61 100644 --- a/client/proxmark3.c +++ b/client/proxmark3.c @@ -127,6 +127,7 @@ void main_loop(char *script_cmds_file, char *script_cmd, bool usb_present) { // If there is a script file if (script_file) { + memset(script_cmd_buf, 0, sizeof(script_cmd_buf)); if (!fgets(script_cmd_buf, sizeof(script_cmd_buf), script_file)) { fclose(script_file); script_file = NULL;