From a272f1c344b471ed9deede70f7e22a58d2d8ecd4 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Wed, 10 Mar 2004 01:17:45 +0000 Subject: toast strcpy --- src/regress/lib/libc/alloca/alloca.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/regress/lib') 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 @@ -/* $OpenBSD: alloca.c,v 1.6 2003/09/02 23:52:16 david Exp $ */ +/* $OpenBSD: alloca.c,v 1.7 2004/03/10 01:17:45 deraadt Exp $ */ /* Written by Michael Shalayeff, 2003, Public Domain. */ @@ -12,10 +12,10 @@ main(int argc, char *argv[]) char *q, *p; p = alloca(41); - strcpy(p, "hellow world"); + strlcpy(p, "hellow world", 41); q = alloca(53); - strcpy(q, "hellow world"); + strlcpy(q, "hellow world", 53); exit(strcmp(p, q)); } -- cgit v1.2.3-55-g6feb