]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_demo.c
fix some errors and warnings
[xonotic/darkplaces.git] / cl_demo.c
index 27959bf6a10836ced927f5cb4bfa9d462d6af59c..bffb265676e8535b83e0c93ee2cb7dfdc5f8b2ea 100644 (file)
--- a/cl_demo.c
+++ b/cl_demo.c
@@ -163,7 +163,7 @@ void CL_PasteDemo (void **buf, fs_offset_t *filesize)
        if(startoffset < *filesize)
                ++startoffset;
 
-       FS_Write(cls.demofile, *buf + startoffset, *filesize - startoffset);
+       FS_Write(cls.demofile, (char*)*buf + startoffset, *filesize - startoffset);
 
        Mem_Free(*buf);
        *buf = NULL;