make sure the trimmed info key value gets terminated properly

This commit is contained in:
Bill Currie 2003-07-08 17:26:50 +00:00
parent a9dbdb5b9b
commit 011fe7babb
1 changed files with 1 additions and 0 deletions

View File

@ -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;
} }