]> jfr.im git - solanum.git/commitdiff
strlcpy -> rb_strlcpy
authorValery Yatsko <redacted>
Sun, 20 Apr 2008 04:40:40 +0000 (08:40 +0400)
committerValery Yatsko <redacted>
Sun, 20 Apr 2008 04:40:40 +0000 (08:40 +0400)
43 files changed:
extensions/ip_cloaking.c
extensions/ip_cloaking_old.c
extensions/m_identify.c
extensions/m_webirc.c
include/irc_string.h
modules/core/m_join.c
modules/core/m_message.c
modules/core/m_nick.c
modules/core/m_part.c
modules/core/m_server.c
modules/m_cap.c
modules/m_challenge.c
modules/m_chghost.c
modules/m_dline.c
modules/m_etrace.c
modules/m_kline.c
modules/m_pong.c
modules/m_resv.c
modules/m_sasl.c
modules/m_scan.c
modules/m_services.c
modules/m_set.c
modules/m_signon.c
modules/m_testline.c
modules/m_user.c
modules/m_xline.c
src/blacklist.c
src/channel.c
src/chmode.c
src/client.c
src/irc_string.c
src/ircd.c
src/listener.c
src/res.c
src/reslib.c
src/s_auth.c
src/s_conf.c
src/s_newconf.c
src/s_serv.c
src/s_user.c
src/scache.c
src/substitution.c
src/whowas.c

index 1b5af63cefcdc6eb4b39d02ec554879e7fba4568..6311731d50021c8b07c91653e996b19c7e055b8d 100644 (file)
@@ -175,7 +175,7 @@ check_umode_change(void *vdata)
                }
                if (strcmp(source_p->host, source_p->localClient->mangledhost))
                {
-                       strlcpy(source_p->host, source_p->localClient->mangledhost, HOSTLEN);
+                       rb_strlcpy(source_p->host, source_p->localClient->mangledhost, HOSTLEN);
                        distribute_hostchange(source_p);
                }
                else /* not really nice, but we need to send this numeric here */
@@ -187,7 +187,7 @@ check_umode_change(void *vdata)
                if (source_p->localClient->mangledhost != NULL &&
                                !strcmp(source_p->host, source_p->localClient->mangledhost))
                {
-                       strlcpy(source_p->host, source_p->orighost, HOSTLEN);
+                       rb_strlcpy(source_p->host, source_p->orighost, HOSTLEN);
                        distribute_hostchange(source_p);
                }
        }
@@ -212,7 +212,7 @@ check_new_user(void *vdata)
                source_p->umodes &= ~user_modes['h'];
        if (source_p->umodes & user_modes['h'])
        {
-               strlcpy(source_p->host, source_p->localClient->mangledhost, sizeof(source_p->host));
+               rb_strlcpy(source_p->host, source_p->localClient->mangledhost, sizeof(source_p->host));
                if (irccmp(source_p->host, source_p->orighost))
                        SetDynSpoof(source_p);
        }
index c87d7a206506dcd9a4c7fa4ce063cd4dc24b45fe..6c186b6aa9528069ccdbe510fb66ce9f3ca977ca 100644 (file)
@@ -131,7 +131,7 @@ check_umode_change(void *vdata)
                }
                if (strcmp(source_p->host, source_p->localClient->mangledhost))
                {
-                       strlcpy(source_p->host, source_p->localClient->mangledhost, HOSTLEN);
+                       rb_strlcpy(source_p->host, source_p->localClient->mangledhost, HOSTLEN);
                        distribute_hostchange(source_p);
                }
                else /* not really nice, but we need to send this numeric here */
@@ -143,7 +143,7 @@ check_umode_change(void *vdata)
                if (source_p->localClient->mangledhost != NULL &&
                                !strcmp(source_p->host, source_p->localClient->mangledhost))
                {
-                       strlcpy(source_p->host, source_p->orighost, HOSTLEN);
+                       rb_strlcpy(source_p->host, source_p->orighost, HOSTLEN);
                        distribute_hostchange(source_p);
                }
        }
@@ -168,7 +168,7 @@ check_new_user(void *vdata)
                source_p->umodes &= ~user_modes['h'];
        if (source_p->umodes & user_modes['h'])
        {
-               strlcpy(source_p->host, source_p->localClient->mangledhost, sizeof(source_p->host));
+               rb_strlcpy(source_p->host, source_p->localClient->mangledhost, sizeof(source_p->host));
                if (irccmp(source_p->host, source_p->orighost))
                        SetDynSpoof(source_p);
        }
index ea4b75a8e66a35a7ee1a184f56cf4c7d29cd1180..f74921c33aa0e4d351b97d792f03045eadce22e6 100644 (file)
@@ -68,7 +68,7 @@ char *reconstruct_parv(int parc, const char *parv[])
 {
        static char tmpbuf[BUFSIZE]; int i;
 
-       strlcpy(tmpbuf, parv[0], BUFSIZE);
+       rb_strlcpy(tmpbuf, parv[0], BUFSIZE);
        for (i = 1; i < parc; i++)
        {
                strlcat(tmpbuf, " ", BUFSIZE);
index 24fe2978e461715c854696207f59d4bd9e9386f9..050d699cf26b50caa1bf007505002731bfe0b25d 100644 (file)
@@ -118,12 +118,12 @@ mr_webirc(struct Client *client_p, struct Client *source_p, int parc, const char
        }
 
 
-       strlcpy(source_p->sockhost, parv[4], sizeof(source_p->sockhost));
+       rb_strlcpy(source_p->sockhost, parv[4], sizeof(source_p->sockhost));
 
        if(strlen(parv[3]) <= HOSTLEN)
-               strlcpy(source_p->host, parv[3], sizeof(source_p->host));
+               rb_strlcpy(source_p->host, parv[3], sizeof(source_p->host));
        else
-               strlcpy(source_p->host, source_p->sockhost, sizeof(source_p->host));
+               rb_strlcpy(source_p->host, source_p->sockhost, sizeof(source_p->host));
        
        del_unknown_ip(source_p);
        inetpton_sock(parv[4], (struct sockaddr *)&source_p->localClient->ip);
index 8f348b69aa3a205fb6a6f43aa769f85a57f37fac..123c8b6cf6d1544cf4bb9cfed4ab746cd6343d2e 100644 (file)
@@ -91,10 +91,6 @@ int inetpton(int af, const char *src, void *dst);
 const char *inetntop_sock(struct sockaddr *src, char *dst, unsigned int size);
 int inetpton_sock(const char *src, struct sockaddr *dst);
 
-#ifndef HAVE_STRLCPY
-size_t strlcpy(char *dst, const char *src, size_t siz);
-#endif
-
 #ifndef HAVE_STRLCAT
 size_t strlcat(char *dst, const char *src, size_t siz);
 #endif
index d4b10361b65a0cba2d4f06a33bedc6df25f1a671..2d62410123e28f83727c328b02aa724814851a48 100644 (file)
@@ -624,7 +624,7 @@ ms_sjoin(struct Client *client_p, struct Client *source_p, int parc, const char
                        mode.mode |= MODE_DISFORWARD;
                        break;
                case 'f':
-                       strlcpy(mode.forward, parv[4 + args], sizeof(mode.forward));
+                       rb_strlcpy(mode.forward, parv[4 + args], sizeof(mode.forward));
                        args++;
                        if(parc < 5 + args)
                                return 0;
@@ -638,7 +638,7 @@ ms_sjoin(struct Client *client_p, struct Client *source_p, int parc, const char
                                return 0;
                        break;
                case 'k':
-                       strlcpy(mode.key, parv[4 + args], sizeof(mode.key));
+                       rb_strlcpy(mode.key, parv[4 + args], sizeof(mode.key));
                        args++;
                        if(parc < 5 + args)
                                return 0;
index 2a21973ca717499c9e9777fa9fd421068b97682c..7eb220618568ae8456ef037e85f211285d15019a 100644 (file)
@@ -451,7 +451,7 @@ msg_channel(int p_or_n, const char *command,
 
        if(chptr->mode.mode & MODE_NOCOLOR)
        {
-               strlcpy(text2, text, BUFSIZE);
+               rb_strlcpy(text2, text, BUFSIZE);
                strip_colour(text2);
                text = text2;
                if (EmptyString(text))
index a87b436fe4dc8a460700e1b5aa371a05d801c49d..dd827b8201cf4d91f951a648c9c82c8692f4142f 100644 (file)
@@ -139,7 +139,7 @@ mr_nick(struct Client *client_p, struct Client *source_p, int parc, const char *
                *s = '\0';
 
        /* copy the nick and terminate it */
-       strlcpy(nick, parv[1], sizeof(nick));
+       rb_strlcpy(nick, parv[1], sizeof(nick));
 
        /* check the nickname is ok */
        if(!clean_nick(nick, 1))
@@ -203,7 +203,7 @@ m_nick(struct Client *client_p, struct Client *source_p, int parc, const char *p
                flood_endgrace(source_p);
 
        /* terminate nick to NICKLEN, we dont want clean_nick() to error! */
-       strlcpy(nick, parv[1], sizeof(nick));
+       rb_strlcpy(nick, parv[1], sizeof(nick));
 
        /* check the nickname is ok */
        if(!clean_nick(nick, 1))
@@ -724,7 +724,7 @@ set_initial_nick(struct Client *client_p, struct Client *source_p, char *nick)
 
        if(source_p->flags & FLAGS_SENTUSER)
        {
-               strlcpy(buf, source_p->username, sizeof(buf));
+               rb_strlcpy(buf, source_p->username, sizeof(buf));
 
                /* got user, heres nick. */
                register_local_user(client_p, source_p, buf);
@@ -1173,35 +1173,35 @@ register_client(struct Client *client_p, struct Client *server,
        source_p->tsinfo = newts;
 
        strcpy(source_p->name, nick);
-       strlcpy(source_p->username, parv[5], sizeof(source_p->username));
-       strlcpy(source_p->host, parv[6], sizeof(source_p->host));
-       strlcpy(source_p->orighost, source_p->host, sizeof(source_p->orighost));
+       rb_strlcpy(source_p->username, parv[5], sizeof(source_p->username));
+       rb_strlcpy(source_p->host, parv[6], sizeof(source_p->host));
+       rb_strlcpy(source_p->orighost, source_p->host, sizeof(source_p->orighost));
 
        if(parc == 12)
        {
-               strlcpy(source_p->info, parv[11], sizeof(source_p->info));
-               strlcpy(source_p->sockhost, parv[7], sizeof(source_p->sockhost));
-               strlcpy(source_p->id, parv[8], sizeof(source_p->id));
+               rb_strlcpy(source_p->info, parv[11], sizeof(source_p->info));
+               rb_strlcpy(source_p->sockhost, parv[7], sizeof(source_p->sockhost));
+               rb_strlcpy(source_p->id, parv[8], sizeof(source_p->id));
                add_to_id_hash(source_p->id, source_p);
                if (strcmp(parv[9], "*"))
                {
-                       strlcpy(source_p->orighost, parv[9], sizeof(source_p->orighost));
+                       rb_strlcpy(source_p->orighost, parv[9], sizeof(source_p->orighost));
                        if (irccmp(source_p->host, source_p->orighost))
                                SetDynSpoof(source_p);
                }
                if (strcmp(parv[10], "*"))
-                       strlcpy(source_p->user->suser, parv[10], sizeof(source_p->user->suser));
+                       rb_strlcpy(source_p->user->suser, parv[10], sizeof(source_p->user->suser));
        }
        else if(parc == 10)
        {
-               strlcpy(source_p->info, parv[9], sizeof(source_p->info));
-               strlcpy(source_p->sockhost, parv[7], sizeof(source_p->sockhost));
-               strlcpy(source_p->id, parv[8], sizeof(source_p->id));
+               rb_strlcpy(source_p->info, parv[9], sizeof(source_p->info));
+               rb_strlcpy(source_p->sockhost, parv[7], sizeof(source_p->sockhost));
+               rb_strlcpy(source_p->id, parv[8], sizeof(source_p->id));
                add_to_id_hash(source_p->id, source_p);
        }
        else
        {
-               strlcpy(source_p->info, parv[8], sizeof(source_p->info));
+               rb_strlcpy(source_p->info, parv[8], sizeof(source_p->info));
        }
 
        /* remove any nd entries for this nick */
index d7536d767bcf5f6b9391582c8c8ba49b01ac1825..a098b6e4a51b066991794dcf47c44207635b3bed 100644 (file)
@@ -71,7 +71,7 @@ m_part(struct Client *client_p, struct Client *source_p, int parc, const char *p
        reason[0] = '\0';
 
        if(parc > 2)
-               strlcpy(reason, parv[2], sizeof(reason));
+               rb_strlcpy(reason, parv[2], sizeof(reason));
 
        name = strtoken(&p, s, ",");
 
index 47c8816b487616997eb735435f5198515a54a4d2..0c90e62a10233ac96ff8d5505e346052b7310665 100644 (file)
@@ -79,7 +79,7 @@ mr_server(struct Client *client_p, struct Client *source_p, int parc, const char
 
        name = parv[1];
        hop = atoi(parv[2]);
-       strlcpy(info, parv[3], sizeof(info));
+       rb_strlcpy(info, parv[3], sizeof(info));
 
        if (IsHandshake(client_p) && irccmp(client_p->name, name))
        {
@@ -230,7 +230,7 @@ mr_server(struct Client *client_p, struct Client *source_p, int parc, const char
         * C:line in client_p->name
         */
 
-       strlcpy(client_p->name, name, sizeof(client_p->name));
+       rb_strlcpy(client_p->name, name, sizeof(client_p->name));
        set_server_gecos(client_p, info);
        client_p->hopcount = hop;
        server_estab(client_p);
@@ -261,7 +261,7 @@ ms_server(struct Client *client_p, struct Client *source_p, int parc, const char
 
        name = parv[1];
        hop = atoi(parv[2]);
-       strlcpy(info, parv[3], sizeof(info));
+       rb_strlcpy(info, parv[3], sizeof(info));
 
        if((target_p = find_server(NULL, name)))
        {
@@ -421,7 +421,7 @@ ms_server(struct Client *client_p, struct Client *source_p, int parc, const char
        make_server(target_p);
        target_p->hopcount = hop;
 
-       strlcpy(target_p->name, name, sizeof(target_p->name));
+       rb_strlcpy(target_p->name, name, sizeof(target_p->name));
 
        set_server_gecos(target_p, info);
 
@@ -569,7 +569,7 @@ ms_sid(struct Client *client_p, struct Client *source_p, int parc, const char *p
        target_p = make_client(client_p);
        make_server(target_p);
 
-       strlcpy(target_p->name, parv[1], sizeof(target_p->name));
+       rb_strlcpy(target_p->name, parv[1], sizeof(target_p->name));
        target_p->hopcount = atoi(parv[2]);
        strcpy(target_p->id, parv[3]);
        set_server_gecos(target_p, parv[4]);
@@ -668,13 +668,13 @@ set_server_gecos(struct Client *client_p, const char *info)
                        /* if there was a trailing space, s could point to \0, so check */
                        if(s && (*s != '\0'))
                        {
-                               strlcpy(client_p->info, s, sizeof(client_p->info));
+                               rb_strlcpy(client_p->info, s, sizeof(client_p->info));
                                return 1;
                        }
                }
        }
 
-       strlcpy(client_p->info, "(Unknown Location)", sizeof(client_p->info));
+       rb_strlcpy(client_p->info, "(Unknown Location)", sizeof(client_p->info));
 
        return 1;
 }
index 5b696250131461cbdabd54eb41a5f11f6291f81b..998d8f0d1966cd597543a925aa80e7cec62c2ce5 100644 (file)
@@ -116,7 +116,7 @@ clicap_find(const char *data, int *negate, int *finished)
 
        if(data)
        {
-               strlcpy(buf, data, sizeof(buf));
+               rb_strlcpy(buf, data, sizeof(buf));
                p = buf;
        }
 
@@ -322,7 +322,7 @@ cap_end(struct Client *source_p, const char *arg)
        if(source_p->name[0] && source_p->user)
        {
                char buf[USERLEN+1];
-               strlcpy(buf, source_p->username, sizeof(buf));
+               rb_strlcpy(buf, source_p->username, sizeof(buf));
                register_local_user(source_p, source_p, buf);
        }
 }
index f2753249b2feac3f525a1311a5103c0771c32ee3..0d2278e4bbd275c74d580176423b3e24b6505eec 100644 (file)
@@ -229,7 +229,7 @@ m_challenge(struct Client *client_p, struct Client *source_p, int parc, const ch
                source_p->localClient->chal_time = rb_current_time();
                for(;;)
                {
-                       cnt = strlcpy(chal_line, chal, CHALLENGE_WIDTH);
+                       cnt = rb_strlcpy(chal_line, chal, CHALLENGE_WIDTH);
                        sendto_one(source_p, form_str(RPL_RSACHALLENGE2), me.name, source_p->name, chal_line);
                        if(cnt > CHALLENGE_WIDTH)
                                chal += CHALLENGE_WIDTH - 1;
index f805cbbf1fdc3c9100f38134d7e22122b0b56612..92e2652a0618034f23397551c8a19930b864e35c 100644 (file)
@@ -94,7 +94,7 @@ me_realhost(struct Client *client_p, struct Client *source_p,
                return 0;
 
        del_from_hostname_hash(source_p->orighost, source_p);
-       strlcpy(source_p->orighost, parv[1], sizeof source_p->orighost);
+       rb_strlcpy(source_p->orighost, parv[1], sizeof source_p->orighost);
        if (irccmp(source_p->host, source_p->orighost))
                SetDynSpoof(source_p);
        else
index 42c134ecba7d3f03f719b64b7cf53fa72af8e957..4c2c6335ddfbd2cb910b815d5d8be3a93b3fd127 100644 (file)
@@ -103,7 +103,7 @@ mo_dline(struct Client *client_p, struct Client *source_p,
        }
 
        dlhost = parv[loc];
-       strlcpy(cidr_form_host, dlhost, sizeof(cidr_form_host));
+       rb_strlcpy(cidr_form_host, dlhost, sizeof(cidr_form_host));
 
        if(!parse_netmask(dlhost, NULL, &bits))
        {
@@ -284,7 +284,7 @@ mo_undline(struct Client *client_p, struct Client *source_p, int parc, const cha
                return 0;
        }
 
-       strlcpy(buf, aconf->host, sizeof buf);
+       rb_strlcpy(buf, aconf->host, sizeof buf);
        if(remove_temp_dline(aconf))
        {
                sendto_one(source_p,
@@ -318,7 +318,7 @@ mo_undline(struct Client *client_p, struct Client *source_p, int parc, const cha
 
        while (fgets(buf, sizeof(buf), in))
        {
-               strlcpy(buff, buf, sizeof(buff));
+               rb_strlcpy(buff, buf, sizeof(buff));
 
                if((p = strchr(buff, '\n')) != NULL)
                        *p = '\0';
index b9bf4c1304a32a03e0de1c9cae3c29e8a16bb334..92d2ca488fb7112f479d9acc3fbfb1856ed2fd53 100644 (file)
@@ -415,7 +415,7 @@ mo_masktrace(struct Client *client_p, struct Client *source_p, int parc,
                if (!ConfigFileEntry.operspy_dont_care_user_info)
                {
                        char buf[512];
-                       strlcpy(buf, mask, sizeof(buf));
+                       rb_strlcpy(buf, mask, sizeof(buf));
                        if(!EmptyString(gecos)) {
                                strlcat(buf, " ", sizeof(buf));
                                strlcat(buf, gecos, sizeof(buf));
index 04a936c771fec80e030bdcfd2dc01619f67fca90..b14f0c38bedfdd77251fe672d7e40b8da6cfd5fb 100644 (file)
@@ -554,11 +554,11 @@ find_user_host(struct Client *source_p, const char *userhost, char *luser, char
        {
                *(hostp++) = '\0';      /* short and squat */
                if(*userhost)
-                       strlcpy(luser, userhost, USERLEN + 1);  /* here is my user */
+                       rb_strlcpy(luser, userhost, USERLEN + 1);       /* here is my user */
                else
                        strcpy(luser, "*");
                if(*hostp)
-                       strlcpy(lhost, hostp, HOSTLEN + 1);     /* here is my host */
+                       rb_strlcpy(lhost, hostp, HOSTLEN + 1);  /* here is my host */
                else
                        strcpy(lhost, "*");
                }
@@ -572,7 +572,7 @@ find_user_host(struct Client *source_p, const char *userhost, char *luser, char
 
                luser[0] = '*'; /* no @ found, assume its *@somehost */
                luser[1] = '\0';
-               strlcpy(lhost, userhost, HOSTLEN + 1);
+               rb_strlcpy(lhost, userhost, HOSTLEN + 1);
        }
 
        return 1;
index 82ce37c4d81a13dcd6fcfd4aa4cff7980a327361..7cf84d5a7980701f50c20e242c65c692a31f42c8 100644 (file)
@@ -111,7 +111,7 @@ mr_pong(struct Client *client_p, struct Client *source_p, int parc, const char *
                                if(source_p->localClient->random_ping == incoming_ping)
                                {
                                        char buf[USERLEN + 1];
-                                       strlcpy(buf, source_p->username, sizeof(buf));
+                                       rb_strlcpy(buf, source_p->username, sizeof(buf));
                                        source_p->flags |= FLAGS_PING_COOKIE;
                                        register_local_user(client_p, source_p, buf);
                                }
index 9d46750c7bcc6214181f00699c4c5bc662ebf8ed..900d430f97643a701ba112bedfaa456357468d47 100644 (file)
@@ -577,7 +577,7 @@ remove_resv_from_file(struct Client *source_p, const char *name)
                        break;
                }
 
-               strlcpy(buff, buf, sizeof(buff));
+               rb_strlcpy(buff, buf, sizeof(buff));
 
                if((p = strchr(buff, '\n')) != NULL)
                        *p = '\0';
index d5f87140f0d386688b4f4bdc8e36e0c913d05ed2..41bf823d97333a1c121b223254e8e935d736a412 100644 (file)
@@ -150,7 +150,7 @@ me_sasl(struct Client *client_p, struct Client *source_p,
        if(*target_p->preClient->sasl_agent && strncmp(parv[1], target_p->preClient->sasl_agent, IDLEN))
                return 0;
        else if(!*target_p->preClient->sasl_agent)
-               strlcpy(target_p->preClient->sasl_agent, parv[1], IDLEN);
+               rb_strlcpy(target_p->preClient->sasl_agent, parv[1], IDLEN);
 
        if(*parv[3] == 'C')
                sendto_one(target_p, "AUTHENTICATE %s", parv[4]);
index 37a078332d876840ffe098476950366171e57e26..bee5e47b62cd3a38185cddeadc116833a28d00e3 100644 (file)
@@ -178,7 +178,7 @@ scan_umodes(struct Client *client_p, struct Client *source_p, int parc,
                {
                        if (!ConfigFileEntry.operspy_dont_care_user_info)
                        {
-                               strlcpy(buf, "UMODES", sizeof buf);
+                               rb_strlcpy(buf, "UMODES", sizeof buf);
                                for (i = 2; i < parc; i++)
                                {
                                        strlcat(buf, " ", sizeof buf);
index af0e9c30d93790a4c228fdef0f40a3f1adbac287..e11099d6680d9b692ffad8c177f7f0b2b53894d3 100644 (file)
@@ -106,7 +106,7 @@ me_su(struct Client *client_p, struct Client *source_p,
        if(EmptyString(parv[2]))
                target_p->user->suser[0] = '\0';
        else
-               strlcpy(target_p->user->suser, parv[2], sizeof(target_p->user->suser));
+               rb_strlcpy(target_p->user->suser, parv[2], sizeof(target_p->user->suser));
 
        invalidate_bancache_user(target_p);
 
@@ -120,7 +120,7 @@ me_login(struct Client *client_p, struct Client *source_p,
        if(!IsPerson(source_p))
                return 0;
 
-       strlcpy(source_p->user->suser, parv[1], sizeof(source_p->user->suser));
+       rb_strlcpy(source_p->user->suser, parv[1], sizeof(source_p->user->suser));
        return 0;
 }
 
index b518625c151ba763d1f36769c8f2a88831fdb348..3d80d8400cd9884f3bb0b589ba16743ecc44816f 100644 (file)
@@ -257,7 +257,7 @@ quote_operstring(struct Client *source_p, const char *arg)
        }
        else
        {
-               strlcpy(GlobalSetOptions.operstring, arg,
+               rb_strlcpy(GlobalSetOptions.operstring, arg,
                        sizeof(GlobalSetOptions.operstring));
                
                sendto_realops_snomask(SNO_GENERAL, L_ALL,
@@ -276,7 +276,7 @@ quote_adminstring(struct Client *source_p, const char *arg)
        }
        else
        {
-               strlcpy(GlobalSetOptions.adminstring, arg,
+               rb_strlcpy(GlobalSetOptions.adminstring, arg,
                        sizeof(GlobalSetOptions.adminstring));
                
                sendto_realops_snomask(SNO_GENERAL, L_ALL,
index 4d242daf5fbdf002315029ec688587c912deb0fd..592330a8ca7f2c4a3cd062f9b3f456057656a7a7 100644 (file)
@@ -163,41 +163,41 @@ me_svslogin(struct Client *client_p, struct Client *source_p,
 
        if(clean_nick(parv[2]))
        {
-               strlcpy(nick, parv[2], NICKLEN + 1);
+               rb_strlcpy(nick, parv[2], NICKLEN + 1);
                valid |= NICK_VALID;
        }
        else if(*target_p->name)
-               strlcpy(nick, target_p->name, NICKLEN + 1);
+               rb_strlcpy(nick, target_p->name, NICKLEN + 1);
        else
                strcpy(nick, "*");
 
        if(clean_username(parv[3]))
        {
-               strlcpy(user, parv[3], USERLEN + 1);
+               rb_strlcpy(user, parv[3], USERLEN + 1);
                valid |= USER_VALID;
        }
        else
-               strlcpy(user, target_p->username, USERLEN + 1);
+               rb_strlcpy(user, target_p->username, USERLEN + 1);
 
        if(clean_host(parv[4]))
        {
-               strlcpy(host, parv[4], HOSTLEN + 1);
+               rb_strlcpy(host, parv[4], HOSTLEN + 1);
                valid |= HOST_VALID;
        }
        else
-               strlcpy(host, target_p->host, HOSTLEN + 1);
+               rb_strlcpy(host, target_p->host, HOSTLEN + 1);
 
        if(*parv[5] == '*')
        {
                if(target_p->user)
-                       strlcpy(login, target_p->user->suser, NICKLEN + 1);
+                       rb_strlcpy(login, target_p->user->suser, NICKLEN + 1);
                else
                        login[0] = '\0';
        }
        else if(!strcmp(parv[5], "0"))
                login[0] = '\0';
        else
-               strlcpy(login, parv[5], NICKLEN + 1);
+               rb_strlcpy(login, parv[5], NICKLEN + 1);
 
        /* Login (mostly) follows nick rules. */
        if(*login && !clean_nick(login))
@@ -251,7 +251,7 @@ me_svslogin(struct Client *client_p, struct Client *source_p,
                if(valid & HOST_VALID)
                        strcpy(target_p->preClient->spoofhost, host);
 
-               strlcpy(user_p->suser, login, NICKLEN + 1);
+               rb_strlcpy(user_p->suser, login, NICKLEN + 1);
        }
        else
        {
@@ -317,7 +317,7 @@ ms_signon(struct Client *client_p, struct Client *source_p,
        else if(*parv[5] != '*')
        {
                if (clean_nick(parv[5]))
-                       strlcpy(login, parv[5], NICKLEN + 1);
+                       rb_strlcpy(login, parv[5], NICKLEN + 1);
                else
                        return 0;
        }
index 51e5b77a25e3b56350fdc87886b5d1b5a6a367cd..58fc7926b00c0fec717d7e932725038fdf716407 100644 (file)
@@ -141,13 +141,13 @@ mo_testline(struct Client *client_p, struct Client *source_p, int parc, const ch
 
        if (username != NULL)
        {
-               strlcpy(user_trunc, username, sizeof user_trunc);
-               strlcpy(notildeuser_trunc, *username == '~' ? username + 1 : username, sizeof notildeuser_trunc);
+               rb_strlcpy(user_trunc, username, sizeof user_trunc);
+               rb_strlcpy(notildeuser_trunc, *username == '~' ? username + 1 : username, sizeof notildeuser_trunc);
        }
        else
        {
-               strlcpy(user_trunc, "dummy", sizeof user_trunc);
-               strlcpy(notildeuser_trunc, "dummy", sizeof notildeuser_trunc);
+               rb_strlcpy(user_trunc, "dummy", sizeof user_trunc);
+               rb_strlcpy(notildeuser_trunc, "dummy", sizeof notildeuser_trunc);
        }
        /* now look for a matching I/K/G */
        if((aconf = find_address_conf(host, NULL, user_trunc, notildeuser_trunc,
index aa12a6cc8966690ef6fe0e1f4c933e20204235b7..c2f61c33335386093aa7cabed44a3acf2b85cd9e 100644 (file)
@@ -97,14 +97,14 @@ do_local_user(struct Client *client_p, struct Client *source_p,
                source_p->flags |= FLAGS_SENTUSER;
        }
 
-       strlcpy(source_p->info, realname, sizeof(source_p->info));
+       rb_strlcpy(source_p->info, realname, sizeof(source_p->info));
 
        if(!IsGotId(source_p))
        {
                /* This is in this location for a reason..If there is no identd
                 * and ping cookies are enabled..we need to have a copy of this
                 */
-               strlcpy(source_p->username, username, sizeof(source_p->username));
+               rb_strlcpy(source_p->username, username, sizeof(source_p->username));
        }
 
        if(source_p->name[0])
index fb615ad0b55ef6fc67e69dec7599b326a4c5fa20..954cee2f8a35b2a04314b56237991de7cf503a63 100644 (file)
@@ -622,7 +622,7 @@ remove_xline_from_file(struct Client *source_p, const char *huntgecos)
                        break;
                }
 
-               strlcpy(buff, buf, sizeof(buff));
+               rb_strlcpy(buff, buf, sizeof(buff));
 
                if((p = strchr(buff, '\n')) != NULL)
                        *p = '\0';
index 50de9ade364d86ccbca7b04d1bdd4d2088cd1501..572caddfe4537215b042fd72689d98c3f5f2ce83 100644 (file)
@@ -106,7 +106,7 @@ static void blacklist_dns_callback(void *vptr, struct DNSReply *reply)
        if (rb_dlink_list_length(&blcptr->client_p->preClient->dnsbl_queries) == 0 && blcptr->client_p->flags & FLAGS_SENTUSER && !EmptyString(blcptr->client_p->name))
        {
                char buf[USERLEN + 1];
-               strlcpy(buf, blcptr->client_p->username, sizeof buf);
+               rb_strlcpy(buf, blcptr->client_p->username, sizeof buf);
                register_local_user(blcptr->client_p, blcptr->client_p, buf);
        }
 
@@ -154,8 +154,8 @@ struct Blacklist *new_blacklist(char *name, char *reject_reason)
        }
        else
                blptr->status &= ~CONF_ILLEGAL;
-       strlcpy(blptr->host, name, HOSTLEN);
-       strlcpy(blptr->reject_reason, reject_reason, IRCD_BUFSIZE);
+       rb_strlcpy(blptr->host, name, HOSTLEN);
+       rb_strlcpy(blptr->reject_reason, reject_reason, IRCD_BUFSIZE);
        blptr->lastwarning = 0;
 
        return blptr;
index d1acd20b511117ddf299e1751bcfdd5f538cda42..1fb8863a0854d9c714edfe5aea7275307b9b89dd 100644 (file)
@@ -1068,8 +1068,8 @@ set_channel_topic(struct Channel *chptr, const char *topic, const char *topic_in
        {
                if(chptr->topic == NULL)
                        allocate_topic(chptr);
-               strlcpy(chptr->topic, topic, TOPICLEN + 1);
-               strlcpy(chptr->topic_info, topic_info, USERHOST_REPLYLEN);
+               rb_strlcpy(chptr->topic, topic, TOPICLEN + 1);
+               rb_strlcpy(chptr->topic_info, topic_info, USERHOST_REPLYLEN);
                chptr->topic_time = topicts;
        }
        else
@@ -1160,7 +1160,7 @@ channel_modes(struct Channel *chptr, struct Client *client_p)
 
        *mbuf = '\0';
 
-       strlcpy(final, buf1, sizeof final);
+       rb_strlcpy(final, buf1, sizeof final);
        strlcat(final, buf2, sizeof final);
        return final;
 }
index 81c4202abbb226765e94a763f45c76539b6fb238..9fca471762d263b91b84250dcc966794ada54af1 100644 (file)
@@ -127,7 +127,7 @@ add_id(struct Client *source_p, struct Channel *chptr, const char *banid,
        if(IsPerson(source_p))
                rb_sprintf(who, "%s!%s@%s", source_p->name, source_p->username, source_p->host);
        else
-               strlcpy(who, source_p->name, sizeof(who));
+               rb_strlcpy(who, source_p->name, sizeof(who));
 
        actualBan = allocate_ban(realban, who);
        actualBan->when = rb_current_time();
@@ -1036,7 +1036,7 @@ chm_forward(struct Client *source_p, struct Channel *chptr,
                        }
                }
 
-               strlcpy(chptr->mode.forward, forward, sizeof(chptr->mode.forward));
+               rb_strlcpy(chptr->mode.forward, forward, sizeof(chptr->mode.forward));
 
                mode_changes[mode_count].letter = c;
                mode_changes[mode_count].dir = MODE_ADD;
@@ -1096,7 +1096,7 @@ chm_key(struct Client *source_p, struct Channel *chptr,
                        return;
 
                s_assert(key[0] != ' ');
-               strlcpy(chptr->mode.key, key, sizeof(chptr->mode.key));
+               rb_strlcpy(chptr->mode.key, key, sizeof(chptr->mode.key));
 
                mode_changes[mode_count].letter = c;
                mode_changes[mode_count].dir = MODE_ADD;
index 96d7372f435b7d70bce397ef9a871fe2731991c3..497a7b63aad041d5f0e4d0b33205d5db95e3f7f5 100644 (file)
@@ -1231,7 +1231,7 @@ dead_link(struct Client *client_p)
        abt = (struct abort_client *) rb_malloc(sizeof(struct abort_client));
 
        if(client_p->flags & FLAGS_SENDQEX)
-               strlcpy(abt->notice, "Max SendQ exceeded", sizeof(abt->notice));
+               rb_strlcpy(abt->notice, "Max SendQ exceeded", sizeof(abt->notice));
        else
                rb_snprintf(abt->notice, sizeof(abt->notice), "Write error: %s", strerror(errno));
 
@@ -2053,7 +2053,7 @@ error_exit_client(struct Client *client_p, int error)
        }
 
        if(error == 0)
-               strlcpy(errmsg, "Remote host closed the connection", sizeof(errmsg));
+               rb_strlcpy(errmsg, "Remote host closed the connection", sizeof(errmsg));
        else
                rb_snprintf(errmsg, sizeof(errmsg), "Read error: %s", strerror(current_error));
 
index 62cdc7ec410cafb0bd9c719cdbfa45a0d8634cdc..4728deb3d3bc50d62bc1ed8c07db3dc60c5c33d8 100644 (file)
@@ -787,36 +787,6 @@ strlcat(char *dst, const char *src, size_t siz)
 }
 #endif
 
-#ifndef HAVE_STRLCPY
-size_t
-strlcpy(char *dst, const char *src, size_t siz)
-{
-       char *d = dst;
-       const char *s = src;
-       size_t n = siz;
-       /* Copy as many bytes as will fit */
-       if(n != 0 && --n != 0)
-       {
-               do
-               {
-                       if((*d++ = *s++) == 0)
-                               break;
-               }
-               while(--n != 0);
-       }
-       /* Not enough room in dst, add NUL and traverse rest of src */
-       if(n == 0)
-       {
-               if(siz != 0)
-                       *d = '\0';      /* NUL-terminate dst */
-               while(*s++)
-                       ;
-       }
-
-       return (s - src - 1);   /* count does not include NUL */
-}
-#endif
-
 char *
 strip_colour(char *string)
 {
index b46ee034595f851b5c9e450191d71d53d97604b8..689d2daf82b6eabeb0ec3a1ba4ca7f82f10f5348 100644 (file)
@@ -388,10 +388,10 @@ initialize_global_set_options(void)
 
        GlobalSetOptions.ident_timeout = IDENT_TIMEOUT;
 
-       strlcpy(GlobalSetOptions.operstring,
+       rb_strlcpy(GlobalSetOptions.operstring,
                ConfigFileEntry.default_operstring,
                sizeof(GlobalSetOptions.operstring));
-       strlcpy(GlobalSetOptions.adminstring,
+       rb_strlcpy(GlobalSetOptions.adminstring,
                ConfigFileEntry.default_adminstring,
                sizeof(GlobalSetOptions.adminstring));
 
@@ -696,7 +696,7 @@ main(int argc, char *argv[])
                ierror("no server name specified in serverinfo block.");
                return -1;
        }
-       strlcpy(me.name, ServerInfo.name, sizeof(me.name));
+       rb_strlcpy(me.name, ServerInfo.name, sizeof(me.name));
 
        if(ServerInfo.sid[0] == '\0')
        {
@@ -712,7 +712,7 @@ main(int argc, char *argv[])
                ierror("no server description specified in serverinfo block.");
                return -3;
        }
-       strlcpy(me.info, ServerInfo.description, sizeof(me.info));
+       rb_strlcpy(me.info, ServerInfo.description, sizeof(me.info));
 
        if(ServerInfo.ssl_cert != NULL && ServerInfo.ssl_private_key != NULL)
        {
index 4147bfabe8f0792c77a3b417218e2b13bb597a60..153e1eb8df6c07fde01b2a23f591c12d2b90ee73 100644 (file)
@@ -457,7 +457,7 @@ add_connection(struct Listener *listener, rb_fde_t *F, struct sockaddr *sai, voi
                sizeof(new_client->sockhost));
 
 
-       strlcpy(new_client->host, new_client->sockhost, sizeof(new_client->host));
+       rb_strlcpy(new_client->host, new_client->sockhost, sizeof(new_client->host));
 
        new_client->localClient->F = F;
        add_to_cli_fd_hash(new_client);
index 8d0d94f3d98962dae425bd5b247c7c7e9a97d1f3..aff4bd875dcef5ead3c78f4be15604269643c9d6 100644 (file)
--- a/src/res.c
+++ b/src/res.c
@@ -407,7 +407,7 @@ static void do_query_name(struct DNSQuery *query, const char *name, struct resli
 {
        char host_name[HOSTLEN + 1];
 
-       strlcpy(host_name, name, HOSTLEN + 1);
+       rb_strlcpy(host_name, name, HOSTLEN + 1);
        add_local_domain(host_name, HOSTLEN);
 
        if (request == NULL)
@@ -418,7 +418,7 @@ static void do_query_name(struct DNSQuery *query, const char *name, struct resli
                request->state = REQ_A;
        }
 
-       strlcpy(request->queryname, host_name, sizeof(request->queryname));
+       rb_strlcpy(request->queryname, host_name, sizeof(request->queryname));
        request->type = type;
        query_name(request);
 }
@@ -681,7 +681,7 @@ static int proc_answer(struct reslist *request, HEADER * header, char *buf, char
                          else if (n == 0)
                                  return (0);   /* no more answers left */
 
-                         strlcpy(request->name, hostbuf, HOSTLEN + 1);
+                         rb_strlcpy(request->name, hostbuf, HOSTLEN + 1);
 
                          return (1);
                          break;
@@ -866,7 +866,7 @@ void report_dns_servers(struct Client *source_p)
        {
                if (!inetntop_sock((struct sockaddr *)&(irc_nsaddr_list[i]),
                                ipaddr, sizeof ipaddr))
-                       strlcpy(ipaddr, "?", sizeof ipaddr);
+                       rb_strlcpy(ipaddr, "?", sizeof ipaddr);
                sendto_one_numeric(source_p, RPL_STATSDEBUG,
                                "A %s", ipaddr);
        }
index 4d2236ed88a5dc46e7d95b579feccc2f4d8f311e..5a8e4f6420a203b292c33d11434af45d07c2d030 100644 (file)
@@ -209,7 +209,7 @@ parse_resvconf(void)
       *p = '\0';  /* take the first word */
 
     if (irccmp(opt, "domain") == 0)
-      strlcpy(irc_domain, arg, sizeof(irc_domain));
+      rb_strlcpy(irc_domain, arg, sizeof(irc_domain));
     else if (irccmp(opt, "nameserver") == 0)
       add_nameserver(arg);
   }
index 21236b44343d323088d08120cc690447ab441fd4..6c27d211e928b1d134175092900f7143e02e24d8 100644 (file)
@@ -222,7 +222,7 @@ auth_dns_callback(void *vptr, struct DNSReply *reply)
 
                 if(good && strlen(reply->h_name) <= HOSTLEN)
                 {
-                        strlcpy(auth->client->host, reply->h_name, sizeof(auth->client->host));
+                        rb_strlcpy(auth->client->host, reply->h_name, sizeof(auth->client->host));
                         sendheader(auth->client, REPORT_FIN_DNS);
                 }
                 else if (strlen(reply->h_name) > HOSTLEN)
index 98bd9b602dafc661a69a9dad2fdb3bcb0fcd3213..632d481dd4f71841c55c7d38f49ba35777101a9b 100644 (file)
@@ -313,7 +313,7 @@ verify_access(struct Client *client_p, const char *username)
        }
        else
        {
-               strlcpy(non_ident, "~", sizeof(non_ident));
+               rb_strlcpy(non_ident, "~", sizeof(non_ident));
                strlcat(non_ident, username, sizeof(non_ident));
                aconf = find_address_conf(client_p->host, client_p->sockhost,
                                        non_ident, client_p->username,
@@ -356,14 +356,14 @@ verify_access(struct Client *client_p, const char *username)
                                char *host = p+1;
                                *p = '\0';
 
-                               strlcpy(client_p->username, aconf->name,
+                               rb_strlcpy(client_p->username, aconf->name,
                                        sizeof(client_p->username));
-                               strlcpy(client_p->host, host,
+                               rb_strlcpy(client_p->host, host,
                                        sizeof(client_p->host));
                                *p = '@';
                        }
                        else
-                               strlcpy(client_p->host, aconf->name, sizeof(client_p->host));
+                               rb_strlcpy(client_p->host, aconf->name, sizeof(client_p->host));
                }
                return (attach_iline(client_p, aconf));
        }
@@ -616,9 +616,9 @@ rehash(int sig)
        read_conf_files(NO);
 
        if(ServerInfo.description != NULL)
-               strlcpy(me.info, ServerInfo.description, sizeof(me.info));
+               rb_strlcpy(me.info, ServerInfo.description, sizeof(me.info));
        else
-               strlcpy(me.info, "unknown", sizeof(me.info));
+               rb_strlcpy(me.info, "unknown", sizeof(me.info));
 
        open_logfiles();
        return (0);
@@ -1162,7 +1162,7 @@ read_conf_files(int cold)
 
           - Gozem 2002-07-21 
         */
-       strlcpy(conffilebuf, filename, sizeof(conffilebuf));
+       rb_strlcpy(conffilebuf, filename, sizeof(conffilebuf));
 
        if((conf_fbfile_in = fopen(filename, "r")) == NULL)
        {
index 1bf84ad03f451de2f6ef99e84c589d686e64f3a6..6da826cab0ffc77325eae8c58ae7bc9ffd1ef31f 100644 (file)
@@ -299,7 +299,7 @@ find_oper_conf(const char *username, const char *host, const char *locip, const
                if(irccmp(oper_p->name, name) || !match(oper_p->username, username))
                        continue;
 
-               strlcpy(addr, oper_p->host, sizeof(addr));
+               rb_strlcpy(addr, oper_p->host, sizeof(addr));
 
                if(parse_netmask(addr, (struct sockaddr *)&ip, &bits) != HM_HOST)
                {
@@ -755,7 +755,7 @@ add_nd_entry(const char *name)
 
        nd = rb_bh_alloc(nd_heap);
        
-       strlcpy(nd->name, name, sizeof(nd->name));
+       rb_strlcpy(nd->name, name, sizeof(nd->name));
        nd->expire = rb_current_time() + ConfigFileEntry.nick_delay;
 
        /* this list is ordered */
index 9af385e1325e347662a1a638b7935eada90c4d8d..32a3b8ef15d12670a6cbb46937e1aa181fda1a3f 100644 (file)
@@ -1296,9 +1296,9 @@ serv_connect(struct server_conf *server_p, struct Client *by)
         * The sockhost may be a hostname, this will be corrected later
         * -- jilles
         */
-       strlcpy(client_p->name, server_p->name, sizeof(client_p->name));
-       strlcpy(client_p->host, server_p->host, sizeof(client_p->host));
-       strlcpy(client_p->sockhost, server_p->host, sizeof(client_p->sockhost));
+       rb_strlcpy(client_p->name, server_p->name, sizeof(client_p->name));
+       rb_strlcpy(client_p->host, server_p->host, sizeof(client_p->host));
+       rb_strlcpy(client_p->sockhost, server_p->host, sizeof(client_p->sockhost));
        client_p->localClient->F = F;
        add_to_cli_fd_hash(client_p);
 
index 2d189ce6416c97889be4609c20f7a491e3e67b4b..57cf9ecfbc9867cc5b3673e4f2aaef3d134f09df 100644 (file)
@@ -293,7 +293,7 @@ register_local_user(struct Client *client_p, struct Client *source_p, const char
                char note[NICKLEN + 10];
 
                del_from_client_hash(source_p->name, source_p);
-               strlcpy(source_p->name, source_p->preClient->spoofnick, NICKLEN + 1);
+               rb_strlcpy(source_p->name, source_p->preClient->spoofnick, NICKLEN + 1);
                add_to_client_hash(source_p->name, source_p);
 
                rb_snprintf(note, NICKLEN + 10, "Nick: %s", source_p->name);
@@ -304,7 +304,7 @@ register_local_user(struct Client *client_p, struct Client *source_p, const char
        {
                sendto_one_notice(source_p, ":*** Notice -- You have an illegal character in your hostname");
 
-               strlcpy(source_p->host, source_p->sockhost, sizeof(source_p->host));
+               rb_strlcpy(source_p->host, source_p->sockhost, sizeof(source_p->host));
        }
  
 
@@ -470,14 +470,14 @@ register_local_user(struct Client *client_p, struct Client *source_p, const char
        /* end of valid user name check */
 
        /* Store original hostname -- jilles */
-       strlcpy(source_p->orighost, source_p->host, HOSTLEN + 1);
+       rb_strlcpy(source_p->orighost, source_p->host, HOSTLEN + 1);
 
        /* Spoof user@host */
        if(*source_p->preClient->spoofuser)
-               strlcpy(source_p->username, source_p->preClient->spoofuser, USERLEN + 1);
+               rb_strlcpy(source_p->username, source_p->preClient->spoofuser, USERLEN + 1);
        if(*source_p->preClient->spoofhost)
        {
-               strlcpy(source_p->host, source_p->preClient->spoofhost, HOSTLEN + 1);
+               rb_strlcpy(source_p->host, source_p->preClient->spoofhost, HOSTLEN + 1);
                if (irccmp(source_p->host, source_p->orighost))
                        SetDynSpoof(source_p);
        }
@@ -1437,14 +1437,14 @@ change_nick_user_host(struct Client *target_p,  const char *nick, const char *use
                                target_p->host, nick);
        }
 
-       strlcpy(target_p->username, user, sizeof target_p->username);
-       strlcpy(target_p->host, host, sizeof target_p->host);
+       rb_strlcpy(target_p->username, user, sizeof target_p->username);
+       rb_strlcpy(target_p->host, host, sizeof target_p->host);
 
        if (changed)
                add_history(target_p, 1);
 
        del_from_client_hash(target_p->name, target_p);
-       strlcpy(target_p->name, nick, NICKLEN);
+       rb_strlcpy(target_p->name, nick, NICKLEN);
        add_to_client_hash(target_p->name, target_p);
 
        if(changed)
index 920ebad93d0395d73817a9edcc811356dd14fd5d..1ec035da7c5e40a97da50d1c4d1f9af27fee082e 100644 (file)
@@ -102,7 +102,7 @@ find_or_add(const char *name)
        ptr = (struct scache_entry *) rb_malloc(sizeof(struct scache_entry));
        s_assert(0 != ptr);
 
-       strlcpy(ptr->name, name, sizeof(ptr->name));
+       rb_strlcpy(ptr->name, name, sizeof(ptr->name));
        ptr->info[0] = '\0';
        ptr->flags = 0;
        ptr->known_since = rb_current_time();
@@ -120,7 +120,7 @@ scache_connect(const char *name, const char *info, int hidden)
        struct scache_entry *ptr;
 
        ptr = find_or_add(name);
-       strlcpy(ptr->info, info, sizeof(ptr->info));
+       rb_strlcpy(ptr->info, info, sizeof(ptr->info));
        ptr->flags |= SC_ONLINE;
        if (hidden)
                ptr->flags |= SC_HIDDEN;
index 032d42a7f5dea947582659a29ac693176662f97d..81e8b6824c952114e17148d3d50f374c2184f0d8 100644 (file)
@@ -136,7 +136,7 @@ char *substitution_parse(const char *fmt, rb_dlink_list *varlist)
 
                                if (!strcasecmp(varname, val->name))
                                {
-                                       strlcpy(bptr, val->value, BUFSIZE - (bptr - buf));
+                                       rb_strlcpy(bptr, val->value, BUFSIZE - (bptr - buf));
                                        bptr += strlen(val->value);
                                        break;
                                }
index 4e31df7b51d3fbe252b467c07e3ec9a06ee188a8..36de9135737f3f8f862159410c60b5e24403e0b2 100644 (file)
@@ -77,7 +77,7 @@ void add_history(struct Client *client_p, int online)
         * NOTE: strcpy ok here, the sizes in the client struct MUST
         * match the sizes in the whowas struct
         */
-       strlcpy(who->name, client_p->name, sizeof(who->name));
+       rb_strlcpy(who->name, client_p->name, sizeof(who->name));
        strcpy(who->username, client_p->username);
        strcpy(who->hostname, client_p->host);
        strcpy(who->realname, client_p->info);