mirror of https://github.com/mkerrisk/man-pages
strcat.3: Fix off-by-one error in example code
Reported-by: Eric Sanchis <eric.sanchis@iut-rodez.fr> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
c0f8924419
commit
ada54d9f2e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue