X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/a553f2674865fa544d04ca7b8194e30c008644ae..23e5d20eedcf7522cefd26b0c37809d5ddcf2d13:/client/proxmark3.c diff --git a/client/proxmark3.c b/client/proxmark3.c index b98afd9a..98b28c3c 100644 --- a/client/proxmark3.c +++ b/client/proxmark3.c @@ -1,4 +1,5 @@ //----------------------------------------------------------------------------- +// Copyright (C) 2009 Michael Gernoth // Copyright (C) 2010 iZsh // // This code is licensed to you under the terms of the GNU GPL, version 2 or, @@ -63,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);