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~29^2~21 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=01fe1aa7f6a669cdf71c910baf735ce68029be57;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 --- 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;