diff options
author | imp <imp@FreeBSD.org> | 2001-03-01 06:00:22 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2001-03-01 06:00:22 +0000 |
commit | 9ff30f68ab87bdd5ef77832a8882419c6c462a22 (patch) | |
tree | ffd6f57c0898af58afaf3b2ead95ab063ee93db9 /usr.bin/gcore | |
parent | 83cfdca42cb29d105549ba9032dc486451705f81 (diff) | |
download | FreeBSD-src-9ff30f68ab87bdd5ef77832a8882419c6c462a22.zip FreeBSD-src-9ff30f68ab87bdd5ef77832a8882419c6c462a22.tar.gz |
MAXPATHLEN contains the trailing NUL.
Diffstat (limited to 'usr.bin/gcore')
-rw-r--r-- | usr.bin/gcore/aoutcore.c | 2 | ||||
-rw-r--r-- | usr.bin/gcore/gcore.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/gcore/aoutcore.c b/usr.bin/gcore/aoutcore.c index 0e443b8..7757230 100644 --- a/usr.bin/gcore/aoutcore.c +++ b/usr.bin/gcore/aoutcore.c @@ -100,7 +100,7 @@ main(argc, argv) struct exec exec; int ch, cnt, efd, fd, sflag, uid; char *binfile, *corefile; - char errbuf[_POSIX2_LINE_MAX], fname[MAXPATHLEN + 1]; + char errbuf[_POSIX2_LINE_MAX], fname[MAXPATHLEN]; int is_aout; sflag = 0; diff --git a/usr.bin/gcore/gcore.c b/usr.bin/gcore/gcore.c index 0e443b8..7757230 100644 --- a/usr.bin/gcore/gcore.c +++ b/usr.bin/gcore/gcore.c @@ -100,7 +100,7 @@ main(argc, argv) struct exec exec; int ch, cnt, efd, fd, sflag, uid; char *binfile, *corefile; - char errbuf[_POSIX2_LINE_MAX], fname[MAXPATHLEN + 1]; + char errbuf[_POSIX2_LINE_MAX], fname[MAXPATHLEN]; int is_aout; sflag = 0; |