]> 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)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 15 Oct 2014 11:56:32 +0000 (11:56 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12100 d7cf8633-e32d-0410-b094-e92efae38249

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;
                }
        }