mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
make sure the trimmed info key value gets terminated properly
This commit is contained in:
parent
a9dbdb5b9b
commit
011fe7babb
1 changed files with 1 additions and 0 deletions
|
@ -153,6 +153,7 @@ Info_SetValueForStarKey (info_t *info, const char *key, const char *value, int f
|
||||||
if (*s > 13)
|
if (*s > 13)
|
||||||
*d++ = *s;
|
*d++ = *s;
|
||||||
}
|
}
|
||||||
|
*d = 0;
|
||||||
info->cursize += strlen (str) + 1;
|
info->cursize += strlen (str) + 1;
|
||||||
k->value = str;
|
k->value = str;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue