diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-04-08 16:21:55 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-04-08 16:21:55 +0000 |
commit | c51f7e617a340c966b653b24bf6098811b947dc6 (patch) | |
tree | 6c9c25794e580b31ff65ceffdf92cd541e10ccea /usr.sbin | |
parent | 467b6213ed4a051396f286ee6d9a6b5555fbd5f9 (diff) |
easy strcpy elimination
Diffstat (limited to 'usr.sbin')
-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); } |