X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/212ef3a04d19bcb5299c38fd153ee434e0f26efd..2c3685c26c90e069a64a2050a1fb6a6232c18823:/client/proxmark3.c diff --git a/client/proxmark3.c b/client/proxmark3.c index 08a4e264..98b28c3c 100644 --- a/client/proxmark3.c +++ b/client/proxmark3.c @@ -64,6 +64,8 @@ static void *main_loop(void *targ) while(1) { cmd = readline(PROXPROMPT); if (cmd) { + while(cmd[strlen(cmd) - 1] == ' ') + cmd[strlen(cmd) - 1] = 0x00; if (cmd[0] != 0x00) { CommandReceived(cmd); add_history(cmd);