]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Fix buffer size for injecting netname into demo files.
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 3 Feb 2015 11:02:51 +0000 (11:02 +0000)
committerRudolf Polzer <divVerent@xonotic.org>
Tue, 3 Feb 2015 14:59:01 +0000 (15:59 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12139 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=01fe1aa7f6a669cdf71c910baf735ce68029be57

sv_demo.c

index cc94a2c05aa5d1e6d41b04031651060d41bdc77e..9a9cc1641feda26a1d3c4256b4f9fd540e68e4d7 100644 (file)
--- a/sv_demo.c
+++ b/sv_demo.c
@@ -83,7 +83,7 @@ void SV_WriteNetnameIntoDemo(client_t *client)
 {
        // This "pseudo packet" is written so a program can easily find out whose demo this is
        sizebuf_t buf;
-       unsigned char bufdata[128];
+       unsigned char bufdata[MAX_SCOREBOARDNAME + 64];
 
        if(client->sv_demo_file == NULL)
                return;