diff options
author | 2003-04-08 16:21:54 +0000 | |
---|---|---|
committer | 2003-04-08 16:21:54 +0000 | |
commit | dc2cc2969e5331f613c4d3b7de481566b3c25c5b (patch) | |
tree | f4432a33badd2e040675256f800b941e40c2620e /usr.sbin/httpd/src | |
parent | Move definition of storage for cpu_model to locore.c so sizeof has (diff) | |
download | wireguard-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.c | 2 |
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); } |