Bug fix
authorErik Andersen <andersen@codepoet.org>
Tue, 14 Mar 2000 16:34:49 +0000 (16:34 -0000)
committerErik Andersen <andersen@codepoet.org>
Tue, 14 Mar 2000 16:34:49 +0000 (16:34 -0000)
 -Erik

freeramdisk.c
util-linux/freeramdisk.c

index 426e1323154f8793e565c30d2bfb273ebf6b0c26..43d42d424fb8c84a2949d31d674bfe88aadbc3ca 100644 (file)
@@ -42,7 +42,7 @@ freeramdisk_main(int argc, char **argv)
        char  rname[256] = "/dev/ram";
        int   f;
 
-       if (argc >= 2 || ( argv[1] && *argv[1] == '-')) {
+       if (argc > 2 || ( argv[1] && *argv[1] == '-')) {
                usage(freeramdisk_usage);
        }
 
index 426e1323154f8793e565c30d2bfb273ebf6b0c26..43d42d424fb8c84a2949d31d674bfe88aadbc3ca 100644 (file)
@@ -42,7 +42,7 @@ freeramdisk_main(int argc, char **argv)
        char  rname[256] = "/dev/ram";
        int   f;
 
-       if (argc >= 2 || ( argv[1] && *argv[1] == '-')) {
+       if (argc > 2 || ( argv[1] && *argv[1] == '-')) {
                usage(freeramdisk_usage);
        }