diff options
-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) { |