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 d8f5681..187930b 100644 (file)
@@ -6813,7 +6813,8 @@ nolength:
                        default:
 verbatim:
                                if(o < end - 1)
-                                       *o++ = *s++;
+                                       *o++ = *s;
+                               ++s;
                                break;
                }
        }