]> jfr.im git - solanum.git/blobdiff - modules/m_signon.c
Merge pull request #279 from edk0/operhide
[solanum.git] / modules / m_signon.c
index 6aeecc4714a10918897768bb6e808a732307632b..0714b47ab1a2263d64452ed146f7a19a59926970 100644 (file)
@@ -233,11 +233,11 @@ me_svslogin(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sou
        }
        else
        {
-               char note[NICKLEN + 10];
+               char note[NAMELEN + 10];
 
                send_signon(NULL, target_p, nick, user, host, rb_current_time(), login);
 
-               snprintf(note, NICKLEN + 10, "Nick: %s", target_p->name);
+               snprintf(note, sizeof(note), "Nick: %s", target_p->name);
                rb_note(target_p->localClient->F, note);
        }
 }