Skip to content
Snippets Groups Projects
Commit 920902f3 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix bug with error files (e.g. 404.html) introduced in commit 90de10cf

Deuce expanded the local 'error_code' buf to not trip the SAFECOPY macro
destionation buffer length check. Only this buffer needed to be 4 chars
exactly to truncate the 'message' string at 3 chars (e.g. just "404" for an
error message string that starts with "404 "). Switch from SAFECOPY to strlcpy
to eliminate this bug.

As reported by Ragnarok as part of issue #748

The web error files should work again.
parent f3a09044
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
Pipeline #6353 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment