summaryrefslogtreecommitdiffstats
path: root/eurephiadm/argparser.c
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2009-03-29 19:30:42 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2009-03-29 19:30:42 +0200
commit7cd16251337f804c42460ecb9783ab50b0a35cd7 (patch)
tree365b9dadeedc3d876c08c2a5d96ae93c9c45dc12 /eurephiadm/argparser.c
parentd7a8babb19bcc1107daff0cc5673bc32b0ed785b (diff)
downloadeurephia-7cd16251337f804c42460ecb9783ab50b0a35cd7.tar.gz
eurephia-7cd16251337f804c42460ecb9783ab50b0a35cd7.tar.xz
eurephia-7cd16251337f804c42460ecb9783ab50b0a35cd7.zip
BUGFIX: eurephiadm argument parser increased argument pointer too much
Diffstat (limited to 'eurephiadm/argparser.c')
-rw-r--r--eurephiadm/argparser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eurephiadm/argparser.c b/eurephiadm/argparser.c
index 77de759..5f0be4e 100644
--- a/eurephiadm/argparser.c
+++ b/eurephiadm/argparser.c
@@ -43,7 +43,7 @@ int _eurephia_getopt(const char *module, int *curarg, int argc, char **argv, e_o
if( (argopts[i].param > 0) && (argc > (*curarg)+argopts[i].param) ) {
int j = 0;
for( j = 0; j < argopts[i].param; j++ ) {
- optargs[j] = argv[(*curarg)+j+1];
+ optargs[j] = argv[(*curarg)+1];
(*curarg)++;
}
} else if( (argopts[i].param > 0) ) {