]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - common.c
fix an uninitialized variable warning in win32
[xonotic/darkplaces.git] / common.c
index 8987d7f3f4de81d6c39f13ec552def77cfadef17..875c8d3711aac6dfd3697662d217de585e6fc1ae 100644 (file)
--- a/common.c
+++ b/common.c
@@ -339,7 +339,7 @@ char *MSG_ReadString (void)
 {
        static char string[2048];
        int l,c;
-       for (l = 0;l < sizeof(string) - 1 && (c = MSG_ReadChar()) != -1 && c != 0;l++)
+       for (l = 0;l < (int) sizeof(string) - 1 && (c = MSG_ReadChar()) != -1 && c != 0;l++)
                string[l] = c;
        string[l] = 0;
        return string;