]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdscript.c
CHG: clearCommandBuffer(); before calling cmdparser.
[proxmark3-svn] / client / cmdscript.c
index 730f4e96ab26dd78e3392015af2ad5ef6d82a8af..b8c971581f05daa8b772e8ba491e36eae0e4a607 100644 (file)
@@ -98,10 +98,10 @@ int CmdList(const char *Cmd)
  * @param Cmd
  * @return
  */
-int CmdScript(const char *Cmd)
-{
-  CmdsParse(CommandTable, Cmd);
-  return 0;
+int CmdScript(const char *Cmd) {
+       clearCommandBuffer();
+       CmdsParse(CommandTable, Cmd);
+       return 0;
 }
 /**
  * Utility to check the ending of a string (used to check file suffix)
Impressum, Datenschutz