]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/proxmark3.c
move trailing space stripping to client/proxmark3.c (per discussion on r426)
[proxmark3-svn] / client / proxmark3.c
index 08a4e264f032467b54f0a6608a903c6a08e59944..17534558bbd9c17ee9a8390c568252ab84ac315e 100644 (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);
       }
Impressum, Datenschutz