summaryrefslogtreecommitdiffstats
path: root/usr.sbin/httpd/src
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2003-04-08 16:21:54 +0000
committerhenning <henning@openbsd.org>2003-04-08 16:21:54 +0000
commitdc2cc2969e5331f613c4d3b7de481566b3c25c5b (patch)
treef4432a33badd2e040675256f800b941e40c2620e /usr.sbin/httpd/src
parentMove definition of storage for cpu_model to locore.c so sizeof has (diff)
downloadwireguard-openbsd-dc2cc2969e5331f613c4d3b7de481566b3c25c5b.tar.xz
wireguard-openbsd-dc2cc2969e5331f613c4d3b7de481566b3c25c5b.zip
easy strcpy elimination
Diffstat (limited to 'usr.sbin/httpd/src')
-rw-r--r--usr.sbin/httpd/src/main/alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/httpd/src/main/alloc.c b/usr.sbin/httpd/src/main/alloc.c
index ded560b130d..4d22805e9bd 100644
--- a/usr.sbin/httpd/src/main/alloc.c
+++ b/usr.sbin/httpd/src/main/alloc.c
@@ -1034,7 +1034,7 @@ API_EXPORT_NONSTD(char *) ap_pstrcat(pool *a,...)
va_start(adummy, a);
while ((argp = va_arg(adummy, char *)) != NULL) {
- strcpy(cp, argp);
+ strlcpy(cp, argp, len + 1);
cp += strlen(argp);
}