]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_demo.c
Fix major regression preventing connect to any server using curl for custom CSQC
[xonotic/darkplaces.git] / sv_demo.c
index cc94a2c05aa5d1e6d41b04031651060d41bdc77e..a1bc51d50fc81d6acf8835c7eb7f51813a022a82 100644 (file)
--- a/sv_demo.c
+++ b/sv_demo.c
@@ -22,7 +22,7 @@ void SV_StartDemoRecording(client_t *client, const char *filename, int forcetrac
        client->sv_demo_file = FS_OpenRealFile(name, "wb", false);
        if(!client->sv_demo_file)
        {
-               Con_Print("ERROR: couldn't open.\n");
+               Con_Error("ERROR: couldn't open.\n");
                return;
        }
 
@@ -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;