From: divverent Date: Tue, 3 Feb 2015 11:02:51 +0000 (+0000) Subject: Fix buffer size for injecting netname into demo files. X-Git-Tag: xonotic-v0.8.1~30 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=83abc8e6498d3a7a97678660498bf3607a4aa6a5;p=xonotic%2Fdarkplaces.git Fix buffer size for injecting netname into demo files. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12139 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=01fe1aa7f6a669cdf71c910baf735ce68029be57 --- diff --git a/sv_demo.c b/sv_demo.c index cc94a2c0..9a9cc164 100644 --- 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;