summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2001-03-01 05:47:28 +0000
committerimp <imp@FreeBSD.org>2001-03-01 05:47:28 +0000
commit40f6e5b06d9a92e716eb09b76d6d2c8a9f7a579d (patch)
tree8a1b5169a28edff31dfc31f7d1d08c578b003cbb
parentcb2b79eb7411498800b95d3037242a01d5d655d1 (diff)
downloadFreeBSD-src-40f6e5b06d9a92e716eb09b76d6d2c8a9f7a579d.zip
FreeBSD-src-40f6e5b06d9a92e716eb09b76d6d2c8a9f7a579d.tar.gz
MAXPATHLEN includes the trailing NUL character, so there's no need to add 1
to it for the size of path.
-rw-r--r--usr.bin/calendar/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/calendar/io.c b/usr.bin/calendar/io.c
index 528c2ea..b9d49d5 100644
--- a/usr.bin/calendar/io.c
+++ b/usr.bin/calendar/io.c
@@ -222,7 +222,7 @@ getfield(p, endp, flags)
return (val);
}
-char path[MAXPATHLEN + 1];
+char path[MAXPATHLEN];
FILE *
opencal()
OpenPOWER on IntegriCloud