X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/9f6bbe3cf9c786c5089bfd605315aed5268e8974..0dba1df7cd31b404301f43b23bc6ae46b7ffe33b:/src/scache.c diff --git a/src/scache.c b/src/scache.c index 920ebad..ff8c9fa 100644 --- a/src/scache.c +++ b/src/scache.c @@ -27,7 +27,7 @@ #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 +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;