summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libc/alloca/alloca.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/regress/lib/libc/alloca/alloca.c b/src/regress/lib/libc/alloca/alloca.c
index d9573e2f54..54fa90edae 100644
--- a/src/regress/lib/libc/alloca/alloca.c
+++ b/src/regress/lib/libc/alloca/alloca.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: alloca.c,v 1.6 2003/09/02 23:52:16 david Exp $ */ 1/* $OpenBSD: alloca.c,v 1.7 2004/03/10 01:17:45 deraadt Exp $ */
2 2
3/* Written by Michael Shalayeff, 2003, Public Domain. */ 3/* Written by Michael Shalayeff, 2003, Public Domain. */
4 4
@@ -12,10 +12,10 @@ main(int argc, char *argv[])
12 char *q, *p; 12 char *q, *p;
13 13
14 p = alloca(41); 14 p = alloca(41);
15 strcpy(p, "hellow world"); 15 strlcpy(p, "hellow world", 41);
16 16
17 q = alloca(53); 17 q = alloca(53);
18 strcpy(q, "hellow world"); 18 strlcpy(q, "hellow world", 53);
19 19
20 exit(strcmp(p, q)); 20 exit(strcmp(p, q));
21} 21}