X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/86724c17c9914f495e2a7df729d4fe65a9746d82..3f7540c9b768105a4aad9520419e8c332dc536e6:/client/cmdscript.c?ds=inline

diff --git a/client/cmdscript.c b/client/cmdscript.c
index 730f4e96..b8c97158 100644
--- a/client/cmdscript.c
+++ b/client/cmdscript.c
@@ -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)