X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/9cb00f305c2a054a392f1353064d5bf89d471b53..2c3685c26c90e069a64a2050a1fb6a6232c18823:/client/proxmark3.c?ds=inline diff --git a/client/proxmark3.c b/client/proxmark3.c index 17534558..98b28c3c 100644 --- a/client/proxmark3.c +++ b/client/proxmark3.c @@ -64,9 +64,9 @@ 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) { - while(cmd[strlen(cmd) - 1] == ' ') - cmd[strlen(cmd) - 1]= 0x00; CommandReceived(cmd); add_history(cmd); }