]> 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)
committerbones_was_here <bones_was_here@xonotic.au>
Tue, 23 Jul 2024 21:32:50 +0000 (07:32 +1000)
commite0ae55262c874a8846d6f882fa2416c0ed62d5cd
tree476d31999f444ec426bb760ce6d2f6c09d8301dd
parentffc82878f0b92b5313b27a7a74e0fab91d8d8d25
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