mirror of
https://github.com/yquake2/rogue.git
synced 2025-02-18 01:51:27 +00:00
Fix of by one in Info_SetValueForKey(). Found by ASAN.
This commit is contained in:
parent
1ca53f3118
commit
15ffab8518
1 changed files with 1 additions and 1 deletions
|
@ -1333,7 +1333,7 @@ Info_SetValueForKey(char *s, char *key, char *value)
|
||||||
|
|
||||||
Com_sprintf(newi, sizeof(newi), "\\%s\\%s", key, 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");
|
Com_Printf("Info string length exceeded\n");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue