X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/5a6e19e6148b8be8de43b37129a49fe6684796bc..f7f844d0ba5bb1382e5a5302c06d496258c14b5f:/client/cmdlf.c diff --git a/client/cmdlf.c b/client/cmdlf.c index 924e0fea..29fe6f12 100644 --- a/client/cmdlf.c +++ b/client/cmdlf.c @@ -1236,14 +1236,13 @@ static command_t CommandTable[] = {NULL, NULL, 0, NULL} }; -int CmdLF(const char *Cmd) -{ - CmdsParse(CommandTable, Cmd); - return 0; +int CmdLF(const char *Cmd) { + clearCommandBuffer(); + CmdsParse(CommandTable, Cmd); + return 0; } -int CmdHelp(const char *Cmd) -{ - CmdsHelp(CommandTable); - return 0; +int CmdHelp(const char *Cmd) { + CmdsHelp(CommandTable); + return 0; }