aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerik <erik@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-03-14 16:34:49 +0000
committererik <erik@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-03-14 16:34:49 +0000
commitd77ce1f09a8124d39922e1f7e3fa925c5bb561fc (patch)
tree8174924c2c897950e37d48bf7fc4c8cf7d4e27bb
parent547f5628c9706a6a013f2ecd657364f0e529531f (diff)
downloadbusybox-w32-d77ce1f09a8124d39922e1f7e3fa925c5bb561fc.tar.gz
busybox-w32-d77ce1f09a8124d39922e1f7e3fa925c5bb561fc.tar.bz2
busybox-w32-d77ce1f09a8124d39922e1f7e3fa925c5bb561fc.zip
Bug fix
-Erik git-svn-id: svn://busybox.net/trunk/busybox@405 69ca8d6d-28ef-0310-b511-8ec308f3f277
-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 426e13231..43d42d424 100644
--- a/freeramdisk.c
+++ b/freeramdisk.c
@@ -42,7 +42,7 @@ freeramdisk_main(int argc, char **argv)
42 char rname[256] = "/dev/ram"; 42 char rname[256] = "/dev/ram";
43 int f; 43 int f;
44 44
45 if (argc >= 2 || ( argv[1] && *argv[1] == '-')) { 45 if (argc > 2 || ( argv[1] && *argv[1] == '-')) {
46 usage(freeramdisk_usage); 46 usage(freeramdisk_usage);
47 } 47 }
48 48
diff --git a/util-linux/freeramdisk.c b/util-linux/freeramdisk.c
index 426e13231..43d42d424 100644
--- a/util-linux/freeramdisk.c
+++ b/util-linux/freeramdisk.c
@@ -42,7 +42,7 @@ freeramdisk_main(int argc, char **argv)
42 char rname[256] = "/dev/ram"; 42 char rname[256] = "/dev/ram";
43 int f; 43 int f;
44 44
45 if (argc >= 2 || ( argv[1] && *argv[1] == '-')) { 45 if (argc > 2 || ( argv[1] && *argv[1] == '-')) {
46 usage(freeramdisk_usage); 46 usage(freeramdisk_usage);
47 } 47 }
48 48