diff options
Diffstat (limited to 'src/regress/lib/libc/regex/main.c')
-rw-r--r-- | src/regress/lib/libc/regex/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 @@ | |||
1 | /* $OpenBSD: main.c,v 1.4 2003/07/31 21:48:03 deraadt Exp $ */ | 1 | /* $OpenBSD: main.c,v 1.5 2004/02/28 08:06:46 deraadt Exp $ */ |
2 | /* $NetBSD: main.c,v 1.2 1995/04/20 22:39:51 cgd Exp $ */ | 2 | /* $NetBSD: main.c,v 1.2 1995/04/20 22:39:51 cgd Exp $ */ |
3 | 3 | ||
4 | #include <stdio.h> | 4 | #include <stdio.h> |
@@ -228,7 +228,7 @@ int opts; /* may not match f1 */ | |||
228 | char f0copy[1000]; | 228 | char f0copy[1000]; |
229 | char f2copy[1000]; | 229 | char f2copy[1000]; |
230 | 230 | ||
231 | strcpy(f0copy, f0); | 231 | strlcpy(f0copy, f0, sizeof f0copy); |
232 | re.re_endp = (opts®_PEND) ? f0copy + strlen(f0copy) : NULL; | 232 | re.re_endp = (opts®_PEND) ? f0copy + strlen(f0copy) : NULL; |
233 | fixstr(f0copy); | 233 | fixstr(f0copy); |
234 | err = regcomp(&re, f0copy, opts); | 234 | err = regcomp(&re, f0copy, opts); |
@@ -252,7 +252,7 @@ int opts; /* may not match f1 */ | |||
252 | return; | 252 | return; |
253 | } | 253 | } |
254 | 254 | ||
255 | strcpy(f2copy, f2); | 255 | strlcpy(f2copy, f2, sizeof f2copy); |
256 | fixstr(f2copy); | 256 | fixstr(f2copy); |
257 | 257 | ||
258 | if (options('e', f1)®_STARTEND) { | 258 | if (options('e', f1)®_STARTEND) { |