]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - common.c
don't send free entities! (I've been observing this bug for months)
[xonotic/darkplaces.git] / common.c
index 0f413b2ddde0cc493ed19b662cfde10571388041..584bd837881759c23879e48d1fbd64129613d3d1 100644 (file)
--- a/common.c
+++ b/common.c
@@ -375,7 +375,7 @@ char *MSG_ReadString (void)
                        break;
                string[l] = c;
                l++;
-       } while (l < sizeof(string)-1);
+       } while (l < (int)sizeof(string)-1);
 
        string[l] = 0;
 
@@ -1083,7 +1083,7 @@ void COM_CopyFile (char *netpath, char *cachepath)
 
        while (remaining)
        {
-               if (remaining < sizeof(buf))
+               if (remaining < (int)sizeof(buf))
                        count = remaining;
                else
                        count = sizeof(buf);