mirror of
https://github.com/moparisthebest/hexchat
synced 2024-11-29 20:52:16 -05:00
Check for unallocated string
This commit is contained in:
parent
4a5be24804
commit
ce3fa431f4
@ -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));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user