]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commit
com: fix loop/crash in dpvsnprintf() error handling
authorbones_was_here <bones_was_here@xonotic.au>
Tue, 23 Jul 2024 21:32:50 +0000 (07:32 +1000)
committerDes <xon@damianv.com.ar>
Mon, 5 Aug 2024 11:59:14 +0000 (08:59 -0300)
commit287ee9b875749f2e251c37afd25f7daa4c45bd35
treecc37d17ea1cc507589888e6ab7a0f0a8d4cb9879
parent48db9fceb9aac299e6af7e0936f438f094523a2f
com: fix loop/crash in dpvsnprintf() error handling

Somehow I didn't notice Sys_Printf() calls dpvsnprintf(), see
21fa9010ae6de8792f36cca08cb77aaa95d4b928.

Also fixes a minor bug where Sys_Print() could output more bytes than it
should, introduced in 01642af37128bffc1accbf2e92cb2428ea570720.

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