]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Fix possible endless loop in VM_sprintf.
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 15 Oct 2014 11:56:32 +0000 (11:56 +0000)
committerRudolf Polzer <divVerent@xonotic.org>
Wed, 15 Oct 2014 12:06:58 +0000 (14:06 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12100 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=13906da312242ecc431c6a683b9b0b2c5e9d970c

prvm_cmds.c

index d8f5681c88ac10b65d2b48f8a04a82cceafc30e6..187930b23835891bd0f4d881c252251d46b4966f 100644 (file)
@@ -6813,7 +6813,8 @@ nolength:
                        default:
 verbatim:
                                if(o < end - 1)
-                                       *o++ = *s++;
+                                       *o++ = *s;
+                               ++s;
                                break;
                }
        }