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

This commit is contained in:
adam@algroup.co.uk committed 2010-03-08 09:16:28 +00:00
1 parent fcdfc43e1f
commit 9cb00f305c
3 files changed
+4 -4

No files matched your search

+2
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);
}