]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - src/substitution.c
Update FAQ.
[irc/rqf/shadowircd.git] / src / substitution.c
index 032d42a7f5dea947582659a29ac693176662f97d..708dce23c83f89b975bf11f571acbf1de5bf75d6 100644 (file)
@@ -35,7 +35,9 @@
 
 #include "stdinc.h"
 #include "s_user.h"
-#include "irc_string.h"
+#include "snomask.h"
+#include "match.h"
+#include "substitution.h"
 
 /*
  * Simple mappings for $foo -> 'bar'.
@@ -136,7 +138,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;
                                }