]> jfr.im git - solanum.git/blobdiff - modules/m_services.c
gcc7 fixes: NICKLEN -> NAMELEN
[solanum.git] / modules / m_services.c
index b8a1f363ffc0d804a29b13be9e3ff036d19c942a..6633319d950468449a522829ee59605292bbe0ed 100644 (file)
@@ -160,7 +160,7 @@ me_rsfnc(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source
        struct Client *target_p;
        struct Client *exist_p;
        time_t newts, curts;
-       char note[NICKLEN + 10];
+       char note[NAMELEN + 10];
 
        if(!(source_p->flags & FLAGS_SERVICE))
        {
@@ -252,7 +252,7 @@ doit:
 
        del_all_accepts(target_p);
 
-       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);
 }