diff --git a/commands/simple/devsize.c b/commands/simple/devsize.c index 3ee48c29e..f184d5297 100755 --- a/commands/simple/devsize.c +++ b/commands/simple/devsize.c @@ -30,7 +30,7 @@ int main(int argc, char *argv[]) return 1; } - printf("%lu\n", sizeup(argv[optind])); + printf("%lu\n", sizeup(argv[1])); return 0; }