]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/proxmark3.c
1. fixed send manchester
[proxmark3-svn] / client / proxmark3.c
index 830a12456873e1e01e529d0b18ea6e22db2bfdaa..98b28c3cb981243f5256dfd1669b7c8d914f067c 100644 (file)
@@ -1,4 +1,16 @@
+//-----------------------------------------------------------------------------
+// Copyright (C) 2009 Michael Gernoth <michael at gernoth.net>
+// Copyright (C) 2010 iZsh <izsh at fail0verflow.com>
+//
+// 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 <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <pthread.h>
 #include <readline/readline.h>
@@ -34,6 +46,7 @@ static void *usb_receiver(void *targ)
   }
 
   pthread_exit(NULL);
+  return NULL;
 }
 
 static void *main_loop(void *targ)
@@ -51,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);
@@ -69,6 +84,7 @@ static void *main_loop(void *targ)
 
   ExitGraphics();
   pthread_exit(NULL);
+  return NULL;
 }
 
 int main(int argc, char **argv)
Impressum, Datenschutz