summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--freeramdisk.c2
-rw-r--r--util-linux/freeramdisk.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/freeramdisk.c b/freeramdisk.c
index 426e132..43d42d4 100644
--- a/freeramdisk.c
+++ b/freeramdisk.c
@@ -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);
}
diff --git a/util-linux/freeramdisk.c b/util-linux/freeramdisk.c
index 426e132..43d42d4 100644
--- a/util-linux/freeramdisk.c
+++ b/util-linux/freeramdisk.c
@@ -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);
}