From a831ecfd01abc863ff51c83bf073c4da2ad6b47b Mon Sep 17 00:00:00 2001 From: TingPing Date: Mon, 30 Sep 2013 01:38:51 -0400 Subject: [PATCH] Strip trailing space from pluginpref_list entries --- src/common/plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/plugin.c b/src/common/plugin.c index 117e2d33..ff1c740d 100644 --- a/src/common/plugin.c +++ b/src/common/plugin.c @@ -2015,7 +2015,7 @@ hexchat_pluginpref_list (hexchat_plugin *pl, char* dest) while (fscanf (fpIn, " %[^\n]", bufp) != EOF) /* read whole lines including whitespaces */ { token = strtok (buffer, "="); - g_strlcat (dest, token, 4096); /* Dest must not be smaller than this */ + g_strlcat (dest, g_strchomp (token), 4096); /* Dest must not be smaller than this */ g_strlcat (dest, ",", 4096); }