1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-29 12:42:16 -05:00

Check for unallocated string

This commit is contained in:
Berke Viktor 2012-10-25 18:15:20 +02:00
parent 4a5be24804
commit ce3fa431f4

View File

@ -620,7 +620,7 @@ servlist_connect (session *sess, ircnet *net, gboolean join)
{ {
strcpy (serv->sasluser, prefs.hex_irc_user_name); strcpy (serv->sasluser, prefs.hex_irc_user_name);
} }
else else if (net->user != NULL)
{ {
safe_strcpy (serv->sasluser, net->user, sizeof (serv->sasluser)); safe_strcpy (serv->sasluser, net->user, sizeof (serv->sasluser));
} }