X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/e6432f05795ba0eaf1e34bb47b2a7f87a762de29..b82c2f85e457f361b119d21a31f3263ac3489cc8:/client/cmdscript.c 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)