aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/gcore/gcore.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2001-03-01 06:00:22 +0000
committerWarner Losh <imp@FreeBSD.org>2001-03-01 06:00:22 +0000
commit77892acd6a212004322f705c3e997f13179bfe55 (patch)
tree8547f83ae7d3cab359f43f576d43bdbc76134343 /usr.bin/gcore/gcore.c
parent167ea27b4f46e91e0c6d52f55722965cee5acdf4 (diff)
downloadsrc-77892acd6a212004322f705c3e997f13179bfe55.tar.gz
src-77892acd6a212004322f705c3e997f13179bfe55.zip
MAXPATHLEN contains the trailing NUL.
Notes
Notes: svn path=/head/; revision=73261
Diffstat (limited to 'usr.bin/gcore/gcore.c')
-rw-r--r--usr.bin/gcore/gcore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/gcore/gcore.c b/usr.bin/gcore/gcore.c
index 0e443b8a7b58..7757230e14cf 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;