]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/lib/registry.qh
Fix string length checks in world.qc and add VM_TEMPSTRING_MAXSIZE
[xonotic/xonotic-data.pk3dir.git] / qcsrc / lib / registry.qh
index be67847a446e63a692d70e6ae4c50a75674eaafd..a610df2044d6745b7ffde1dc6412ce7516cd18b5 100644 (file)
@@ -184,7 +184,7 @@ void Registry_send(string id, string hash);
                        if (++group_idx < 50) /* this is to reduce strlen calls */ \
                                continue; \
                        int group_len = strlen(group); \
-                       if (str_len + 1 + group_len >= 16383) /* exceeding max string length? */ \
+                       if (str_len + 1 + group_len >= VM_TEMPSTRING_MAXSIZE) \
                        { \
                                /* keep previous digests and replace current string with its digest */ \
                                s = strcat(substring(s, 0, digests_len), ":", digest_hex("MD4", s)); \