From 011fe7babb79b6f0c8824864cc0ec45fe6d2e57d Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 8 Jul 2003 17:26:50 +0000 Subject: [PATCH] make sure the trimmed info key value gets terminated properly --- libs/util/info.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/util/info.c b/libs/util/info.c index 381da0052..d28fa731d 100644 --- a/libs/util/info.c +++ b/libs/util/info.c @@ -153,6 +153,7 @@ Info_SetValueForStarKey (info_t *info, const char *key, const char *value, int f if (*s > 13) *d++ = *s; } + *d = 0; info->cursize += strlen (str) + 1; k->value = str; }