]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_user.c
capturevideo refactoring, making AVI also "just a module" for it
[xonotic/darkplaces.git] / sv_user.c
index 78ff1f9fdb5af10e3f28fd112407302fcf6431e7..ffa9c3997fee92ff26fe757446c59bf5e45484a1 100644 (file)
--- a/sv_user.c
+++ b/sv_user.c
@@ -854,13 +854,13 @@ clc_stringcmd_invalid:
                                                int crc;
                                                unsigned char *temp;
                                                FS_Seek(host_client->download_file, 0, SEEK_SET);
-                                               temp = Mem_Alloc(tempmempool, size);
+                                               temp = (unsigned char *) Mem_Alloc(tempmempool, size);
                                                FS_Read(host_client->download_file, temp, size);
                                                crc = CRC_Block(temp, size);
                                                Mem_Free(temp);
                                                // calculated crc, send the file info to the client
                                                // (so that it can verify the data)
-                                               Host_ClientCommands(va("\ncl_downloadfinished %i %i %s\n", size, crc, host_client->download_name));
+                                               Host_ClientCommands("\ncl_downloadfinished %i %i %s\n", size, crc, host_client->download_name);
                                                Con_DPrintf("Download of %s by %s has finished\n", host_client->download_name, host_client->name);
                                                FS_Close(host_client->download_file);
                                                host_client->download_file = NULL;