diff --git a/src/common/shared/shared.c b/src/common/shared/shared.c index 260780af..4d41ff63 100644 --- a/src/common/shared/shared.c +++ b/src/common/shared/shared.c @@ -1398,7 +1398,7 @@ Info_SetValueForKey(char *s, char *key, char *value) Com_sprintf(newi, sizeof(newi), "\\%s\\%s", key, value); - if (strlen(newi) + strlen(s) > maxsize) + if (strlen(newi) + strlen(s) >= maxsize) { Com_Printf("Info string length exceeded\n"); return;