summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2013-09-30 01:38:51 -0400
committerTingPing <tingping@tingping.se>2013-09-30 01:38:51 -0400
commita831ecfd01abc863ff51c83bf073c4da2ad6b47b (patch)
treed50f216e02aad4d94b2e466f56f416823096afe8 /src/common
parentb7e8f64bbaea4b78e8a744ca94082528c3eda4dd (diff)
Strip trailing space from pluginpref_list entries
Diffstat (limited to 'src/common')
-rw-r--r--src/common/plugin.c2
1 files changed, 1 insertions, 1 deletions
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);
 		}