]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - csprogs.c
fix some errors and warnings
[xonotic/darkplaces.git] / csprogs.c
index 92408e48cb67f9d79c6302481e3330642529ae6d..4b421f3c17e6b3f4732ab3800e9a815a8e84e033 100644 (file)
--- a/csprogs.c
+++ b/csprogs.c
@@ -691,7 +691,7 @@ qboolean MakeDownloadPacket(const char *filename, void *data, unsigned long len,
                MSG_WriteByte(buf, svc_downloaddata);
                MSG_WriteLong(buf, thispacketoffset);
                MSG_WriteShort(buf, thispacketsize);
-               SZ_Write(buf, data + thispacketoffset, thispacketsize);
+               SZ_Write(buf, (char*)data + thispacketoffset, thispacketsize);
 
                return true;
        }