diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-04-06 23:38:08 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-04-06 23:38:08 +0000 |
commit | 383f1657fdcb5d52c634d04443552ab76265e2b9 (patch) | |
tree | 49e3a7384ed6878d539a59d9b6eebaeef30cee62 /usr.bin/less/search.c | |
parent | e466210857f6bd5671996750e83497c28c1d5485 (diff) |
more strlcpy/strlcat/snprintf, less strcpy/strcat/sprintf
reviewed by tdeval, millert, dhartmei and others. more bits coming here
from some of them i think
Diffstat (limited to 'usr.bin/less/search.c')
-rw-r--r-- | usr.bin/less/search.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/less/search.c b/usr.bin/less/search.c index 0e8c3a15716..67ce87efb8d 100644 --- a/usr.bin/less/search.c +++ b/usr.bin/less/search.c @@ -1,4 +1,4 @@ -/* $OpenBSD: search.c,v 1.3 2001/11/19 19:02:14 mpech Exp $ */ +/* $OpenBSD: search.c,v 1.4 2003/04/06 23:38:07 deraadt Exp $ */ /* * Copyright (c) 1984,1985,1989,1994,1995 Mark Nudelman @@ -295,7 +295,7 @@ compile_pattern(pattern) #endif #if NO_REGEX static char lpbuf[100]; - strcpy(lpbuf, pattern); + strlcpy(lpbuf, pattern, sizeof lbuf); last_pattern = lpbuf; #endif return (0); |