diff options
author | Berke Viktor <bviktor@hexchat.org> | 2012-10-25 18:15:20 +0200 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2012-10-25 18:15:35 +0200 |
commit | ce3fa431f47531b5f21eabe03e9f0af2f03a4cf4 (patch) | |
tree | e19566471023a91f85dface6311ed8fd0c407ea3 /src | |
parent | 4a5be248047addd213ef3caaca98c345c2e02351 (diff) |
Check for unallocated string
Diffstat (limited to 'src')
-rw-r--r-- | src/common/servlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); } |