]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
revert command offsets now leading spaces have been stripped (thanks iZsh!)
authoradam@algroup.co.uk <adam@algroup.co.uk@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Sat, 6 Mar 2010 08:01:08 +0000 (08:01 +0000)
committeradam@algroup.co.uk <adam@algroup.co.uk@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Sat, 6 Mar 2010 08:01:08 +0000 (08:01 +0000)
client/cmddata.c

index 5c61e536c7c37744f517b7f88da92e361ede40e7..d27ca18bbbf495914a3ae203cf9a2c8120ea07c8 100644 (file)
@@ -486,9 +486,9 @@ int CmdSamples(const char *Cmd)
 
 int CmdLoad(const char *Cmd)
 {
-  FILE *f = fopen(Cmd + 1, "r");
+  FILE *f = fopen(Cmd, "r");
   if (!f) {
-    PrintAndLog("couldn't open '%s'", Cmd + 1);
+    PrintAndLog("couldn't open '%s'", Cmd);
     return 0;
   }
 
@@ -544,7 +544,7 @@ int CmdManchesterDemod(const char *Cmd)
   int warnings = 0;
 
   /* check if we're inverting output */
-  if (*(Cmd + 1) == 'i')
+  if (*Cmd == 'i')
   {
     PrintAndLog("Inverting output");
     invert = 1;
Impressum, Datenschutz