]> git.xonotic.org Git - xonotic/darkplaces.git/commit
PRVM: fix a use of strlcpy on an unterminated source
authorbones_was_here <bones_was_here@xonotic.au>
Sun, 21 Jan 2024 18:03:51 +0000 (04:03 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Sun, 21 Jan 2024 18:37:17 +0000 (04:37 +1000)
commitb8664b6856e2aecb83c08717ffbc7ae20dde9630
tree94c8a6abf4918c9fa0fd03fd587742b6ea4c4c37
parent26923fa0dfac9c127efa9d96ad83ddbd66a3d8f0
PRVM: fix a use of strlcpy on an unterminated source

This code is used when starting a QC program in a non-English language.
See also 3727057b879ccfeaa434537f41a302f047e8cfae

Also renames the dp_ustr2stp() parameter ssize to slen for clarity.

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
common.c
common.h
prvm_edict.c