diff options
author | Erik Andersen | 2000-04-28 00:18:56 +0000 |
---|---|---|
committer | Erik Andersen | 2000-04-28 00:18:56 +0000 |
commit | 4f3f757d56fbf420ea5030dcf7ea971b3da3ab47 (patch) | |
tree | d986e9bb9f03bf1f83465c274c35c0d58ed544e4 /mkdir.c | |
parent | 227a59b05d6df9b4be5990915646249d6f548822 (diff) | |
download | busybox-4f3f757d56fbf420ea5030dcf7ea971b3da3ab47.zip busybox-4f3f757d56fbf420ea5030dcf7ea971b3da3ab47.tar.gz |
Latest and greatest. Some effort at libc5 (aiming towards newlib)
compatability.
-Erik
Diffstat (limited to 'mkdir.c')
-rw-r--r-- | mkdir.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -28,7 +28,6 @@ #include <stdio.h> #include <errno.h> -#include <sys/param.h> /* for PATH_MAX */ static const char mkdir_usage[] = "mkdir [OPTION] DIRECTORY...\n\n" @@ -86,9 +85,9 @@ extern int mkdir_main(int argc, char **argv) while (argc > 0) { int status; struct stat statBuf; - char buf[PATH_MAX + 1]; + char buf[BUFSIZ + 1]; - if (strlen(*argv) > PATH_MAX - 1) { + if (strlen(*argv) > BUFSIZ - 1) { fprintf(stderr, name_too_long, "mkdir"); exit FALSE; } |