From a16a24f1c5770e130e61c36fa343d0dcd5707972 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Sat, 28 Feb 2004 08:06:47 +0000 Subject: kill bad functions; some sort of ok from marc who is trying to confuse me --- src/regress/lib/libc/regex/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/regress/lib/libc/regex/main.c') diff --git a/src/regress/lib/libc/regex/main.c b/src/regress/lib/libc/regex/main.c index 02f4bd7cf2..fd092905fa 100644 --- a/src/regress/lib/libc/regex/main.c +++ b/src/regress/lib/libc/regex/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.4 2003/07/31 21:48:03 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.5 2004/02/28 08:06:46 deraadt Exp $ */ /* $NetBSD: main.c,v 1.2 1995/04/20 22:39:51 cgd Exp $ */ #include @@ -228,7 +228,7 @@ int opts; /* may not match f1 */ char f0copy[1000]; char f2copy[1000]; - strcpy(f0copy, f0); + strlcpy(f0copy, f0, sizeof f0copy); re.re_endp = (opts®_PEND) ? f0copy + strlen(f0copy) : NULL; fixstr(f0copy); err = regcomp(&re, f0copy, opts); @@ -252,7 +252,7 @@ int opts; /* may not match f1 */ return; } - strcpy(f2copy, f2); + strlcpy(f2copy, f2, sizeof f2copy); fixstr(f2copy); if (options('e', f1)®_STARTEND) { -- cgit v1.2.3-55-g6feb