X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Flib%2Fstring.qh;h=72673b2354517e28c5abd96c1cc1eb8f160b5b70;hb=7c72d5214331a45148f67dd8ca3f66ce1767d7d2;hp=3c39b7c0bb8e93a0f94ec95cbd081a41e44ba3e2;hpb=4acf073c7dc79dfe676b695165066b7a78b545d8;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/lib/string.qh b/qcsrc/lib/string.qh index 3c39b7c0b..72673b235 100644 --- a/qcsrc/lib/string.qh +++ b/qcsrc/lib/string.qh @@ -4,6 +4,9 @@ #include "sort.qh" #include "oo.qh" +// this is not exactly 16KiB (16384 bytes) because one byte is reserved for the \0 terminator +#define VM_TEMPSTRING_MAXSIZE 16383 + // string logic // // true: is truthy