summaryrefslogtreecommitdiffstats
path: root/utils/atj2137
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2014-11-14 23:20:50 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2014-11-15 13:01:47 +0100
commit229a02a4eebb61332e8180692d4415a7d49303fd (patch)
tree7b3bad8eeabcdb340271ba9f3374e8f7f5f3ece0 /utils/atj2137
parent16dcde4012483ee8354efd3ddea380404cd6f168 (diff)
downloadrockbox-229a02a4eebb61332e8180692d4415a7d49303fd.tar.gz
rockbox-229a02a4eebb61332e8180692d4415a7d49303fd.tar.bz2
rockbox-229a02a4eebb61332e8180692d4415a7d49303fd.zip
adfuload: fix argument parsing
Change-Id: Ibde77a2f7cb7a73c26235be5b2afed9f0aec3e97 Reviewed-on: http://gerrit.rockbox.org/1039 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
Diffstat (limited to 'utils/atj2137')
-rw-r--r--utils/atj2137/adfuload/adfuload.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/atj2137/adfuload/adfuload.c b/utils/atj2137/adfuload/adfuload.c
index 2e60c31e4d..82bbc9d100 100644
--- a/utils/atj2137/adfuload/adfuload.c
+++ b/utils/atj2137/adfuload/adfuload.c
@@ -318,7 +318,8 @@ int main (int argc, char **argv)
fprintf(stderr,"Missing argument for USB IDs\n");
return -1;
}
- char *svid = argv[i + 1];
+ i++;
+ char *svid = argv[i];
char *spid = strchr(svid, ':');
if(svid == NULL)
{