From ce3fa431f47531b5f21eabe03e9f0af2f03a4cf4 Mon Sep 17 00:00:00 2001 From: Berke Viktor Date: Thu, 25 Oct 2012 18:15:20 +0200 Subject: Check for unallocated string --- src/common/servlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common') diff --git a/src/common/servlist.c b/src/common/servlist.c index e42688d9..6529b162 100644 --- a/src/common/servlist.c +++ b/src/common/servlist.c @@ -620,7 +620,7 @@ servlist_connect (session *sess, ircnet *net, gboolean join) { strcpy (serv->sasluser, prefs.hex_irc_user_name); } - else + else if (net->user != NULL) { safe_strcpy (serv->sasluser, net->user, sizeof (serv->sasluser)); } -- cgit 1.4.1