summaryrefslogtreecommitdiff
path: root/usr.sbin/httpd
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2003-04-08 20:32:46 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2003-04-08 20:32:46 +0000
commita4b6205703df000f9ca8eb98a31bad1b3fb709d1 (patch)
tree73bdb3ad095fe17a71b6d6b28998dd17ad1ab1ec /usr.sbin/httpd
parentfa5da3b717c54084f2b5fa831c89ba4a91017961 (diff)
kill one more strcpy; easy one
Diffstat (limited to 'usr.sbin/httpd')
-rw-r--r--usr.sbin/httpd/src/main/util_script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/httpd/src/main/util_script.c b/usr.sbin/httpd/src/main/util_script.c
index 1f911a2fb23..35fd5b06019 100644
--- a/usr.sbin/httpd/src/main/util_script.c
+++ b/usr.sbin/httpd/src/main/util_script.c
@@ -553,7 +553,7 @@ API_EXPORT(int) ap_scan_script_header_err_core(request_rec *r, char *buffer,
char malformed[(sizeof MALFORMED_MESSAGE) + 1
+ MALFORMED_HEADER_LENGTH_TO_SHOW];
- strcpy(malformed, MALFORMED_MESSAGE);
+ strlcpy(malformed, MALFORMED_MESSAGE, sizeof(malformed));
strncat(malformed, w, MALFORMED_HEADER_LENGTH_TO_SHOW);
if (!buffer) {