]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - src/scache.c
We use Git now. Git is cool. Just like fezes.
[irc/rqf/shadowircd.git] / src / scache.c
index 920ebad93d0395d73817a9edcc811356dd14fd5d..a186ba1d5c7db9b0605098f11460b4e95cf5062d 100644 (file)
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  *  USA
  *
- *  $Id: scache.c 6 2005-09-10 01:02:21Z nenolod $
  */
 
 #include "stdinc.h"
 #include "client.h"
 #include "common.h"
-#include "irc_string.h"
+#include "match.h"
 #include "ircd.h"
 #include "numeric.h"
 #include "send.h"
@@ -102,7 +101,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 +119,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;