Fix sv_vcatpvfn %s with precision on non-NUL-terminated strings
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Sun, 15 Oct 2017 07:33:22 +0000 (09:33 +0200)
committerDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Sat, 21 Oct 2017 19:08:39 +0000 (20:08 +0100)
commit17661fb1c2bdb3f4c7af40322c5694e9651dafff
tree0f4dfd339f839cf4ce96f9c13d5b8b47a8c1c58f
parentaefb3fa072c057c13029faf2c7044bca8e0cc344
Fix sv_vcatpvfn %s with precision on non-NUL-terminated strings

The precision parameter to %s can be used to print non-NUL-terminated
strings, so use my_strnlen() to limit the length checking to the
specified length.
sv.c