X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/590f8ff949af9cb55548b050e5da2481e9e469f5..8f51ddb0bd8fb7536a07966433061f03d45f65e0:/client/proxmark3.c diff --git a/client/proxmark3.c b/client/proxmark3.c index 77c37715..98b28c3c 100644 --- a/client/proxmark3.c +++ b/client/proxmark3.c @@ -1,3 +1,14 @@ +//----------------------------------------------------------------------------- +// 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, +// at your option, any later version. See the LICENSE.txt file for the text of +// the license. +//----------------------------------------------------------------------------- +// Main binary +//----------------------------------------------------------------------------- + #include #include #include @@ -35,6 +46,7 @@ static void *usb_receiver(void *targ) } pthread_exit(NULL); + return NULL; } static void *main_loop(void *targ) @@ -52,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); @@ -70,6 +84,7 @@ static void *main_loop(void *targ) ExitGraphics(); pthread_exit(NULL); + return NULL; } int main(int argc, char **argv)