diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-04-08 20:32:46 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-04-08 20:32:46 +0000 |
commit | a4b6205703df000f9ca8eb98a31bad1b3fb709d1 (patch) | |
tree | 73bdb3ad095fe17a71b6d6b28998dd17ad1ab1ec /usr.sbin/httpd | |
parent | fa5da3b717c54084f2b5fa831c89ba4a91017961 (diff) |
kill one more strcpy; easy one
Diffstat (limited to 'usr.sbin/httpd')
-rw-r--r-- | usr.sbin/httpd/src/main/util_script.c | 2 |
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) { |