From 9ffcf100aaf7e3262b704d6f6569f2ade5f8d1d5 Mon Sep 17 00:00:00 2001 From: divverent Date: Wed, 15 Oct 2014 11:56:32 +0000 Subject: [PATCH] Fix possible endless loop in VM_sprintf. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12100 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=13906da312242ecc431c6a683b9b0b2c5e9d970c --- prvm_cmds.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/prvm_cmds.c b/prvm_cmds.c index d8f5681c..187930b2 100644 --- a/prvm_cmds.c +++ b/prvm_cmds.c @@ -6813,7 +6813,8 @@ nolength: default: verbatim: if(o < end - 1) - *o++ = *s++; + *o++ = *s; + ++s; break; } } -- 2.39.2