0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-02 03:32:52 +01:00

m_pass.c fix

This commit is contained in:
Valery Yatsko 2008-04-02 05:59:06 +04:00
parent b3f899591d
commit 38cbb0a259

View file

@ -67,7 +67,7 @@ mr_pass(struct Client *client_p, struct Client *source_p, int parc, const char *
rb_free(client_p->localClient->passwd); rb_free(client_p->localClient->passwd);
} }
DupNString(client_p->localClient->passwd, parv[1], PASSWDLEN); client_p->localClient->passwd = rb_strndup(parv[1], PASSWDLEN);
/* These are for servers only */ /* These are for servers only */
if(parc > 2 && client_p->user == NULL) if(parc > 2 && client_p->user == NULL)