move trailing space stripping to client/proxmark3.c (per discussion on r426)

This commit is contained in:
adam@algroup.co.uk 2010-03-08 09:16:28 +00:00
commit 9cb00f305c
3 changed files with 4 additions and 4 deletions

View file

@ -65,6 +65,8 @@ static void *main_loop(void *targ)
cmd = readline(PROXPROMPT);
if (cmd) {
if (cmd[0] != 0x00) {
while(cmd[strlen(cmd) - 1] == ' ')
cmd[strlen(cmd) - 1]= 0x00;
CommandReceived(cmd);
add_history(cmd);
}