]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_demo.c
Fix engine not starting on Windows if linked against SDL > 2.0.5
[xonotic/darkplaces.git] / 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;