summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/text.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/text.c b/src/common/text.c
index 8cf850ba..766d2dd9 100644
--- a/src/common/text.c
+++ b/src/common/text.c
@@ -527,9 +527,12 @@ log_create_pathname (char *servname, char *channame, char *netname)
 		channame = log_create_filename (channame);
 	}
 
+	servname = log_create_filename (servname);
+
 	log_insert_vars (fname, sizeof (fname), prefs.hex_irc_logmask, channame, netname, servname);
 	g_free (channame);
 	g_free (netname);
+	g_free (servname);
 
 	/* insert time/date */
 	now = time (NULL);