summaryrefslogtreecommitdiff
path: root/usr.bin/less/regexp.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/less/regexp.c')
-rw-r--r--usr.bin/less/regexp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/less/regexp.c b/usr.bin/less/regexp.c
index c9724f4ce71..3313855de45 100644
--- a/usr.bin/less/regexp.c
+++ b/usr.bin/less/regexp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: regexp.c,v 1.4 2003/04/05 01:03:35 deraadt Exp $ */
+/* $OpenBSD: regexp.c,v 1.5 2003/04/06 18:42:57 deraadt Exp $ */
/*
* regcomp and regexec -- regsub and regerror are elsewhere
@@ -1192,7 +1192,7 @@ char *op;
break;
}
if (p != NULL)
- (void) strcat(buf, p);
+ (void) strlcat(buf, p, sizeof buf);
return(buf);
}
#endif