From 01fe1aa7f6a669cdf71c910baf735ce68029be57 Mon Sep 17 00:00:00 2001 From: divverent Date: Tue, 3 Feb 2015 11:02:51 +0000 Subject: [PATCH] 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 --- sv_demo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2