diff options
Diffstat (limited to 'src/cmd/disk/mkfs.c')
-rw-r--r-- | src/cmd/disk/mkfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/disk/mkfs.c b/src/cmd/disk/mkfs.c index 48de7022..2edb37f4 100644 --- a/src/cmd/disk/mkfs.c +++ b/src/cmd/disk/mkfs.c @@ -151,7 +151,7 @@ main(int argc, char **argv) usage(); }ARGEND - if(!argc) + if(!argc) usage(); buf = emalloc(buflen); @@ -514,7 +514,7 @@ setnames(File *f) strcpy(oldfile, f->old); }else sprint(oldfile, "%s%s", oldroot, f->new); - if(strlen(newfile) >= sizeof newfile + if(strlen(newfile) >= sizeof newfile || strlen(oldfile) >= sizeof oldfile) error("name overfile"); } |