X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/a403a55959e0716ef18f315869558c5050c1d888..30a5d3552930ab77d489484fcd47f296b69dfe34:/client/cmdscript.c diff --git a/client/cmdscript.c b/client/cmdscript.c index 74d2228a..e4666dbf 100644 --- a/client/cmdscript.c +++ b/client/cmdscript.c @@ -228,8 +228,8 @@ int CmdRun(const char *Cmd) // memset(cmd_name, 0, 32); // sscanf(Cmd, "%31s%n", cmd_name, &len); - char script_name[128]; - char arguments[256]; + char script_name[128] = {0}; + char arguments[256] = {0}; int name_len = 0; int arg_len = 0; @@ -244,7 +244,7 @@ int CmdRun(const char *Cmd) char buf[256]; snprintf(buf, sizeof buf, "./scripts/%s%s", script_name, suffix); - printf("---Executing: %s with arguments '%s'\n",buf,arguments); + printf("--- Executing: %s, args'%s'\n",buf,arguments);