aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--man3/strcat.32
1 files changed, 1 insertions, 1 deletions
diff --git a/man3/strcat.3 b/man3/strcat.3
index 7d0998fc12..9263c7ec93 100644
--- a/man3/strcat.3
+++ b/man3/strcat.3
@@ -209,7 +209,7 @@ main(int argc, char *argv[])
{
#define LIM 4000000
int j;
- char p[LIM];
+ char p[LIM + 1]; /* +1 for terminating null byte */
time_t base;
base = time(NULL);