]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - libratbox/src/patricia.c
libratbox: Clean up uses of strcpy().
[irc/rqf/shadowircd.git] / libratbox / src / patricia.c
index 33484f8f9a354bc73865421dcc1892fa97d31a1e..438763eb53fe1f1f2c4d93c6085550b781ab5616 100644 (file)
@@ -4,7 +4,6 @@
  * This was then yanked out of the ratbox/devel/src tree and stuffed into
  * libratbox and had function names changed, but otherwise not really altered.
  *
- * $Id: patricia.c 24244 2007-08-22 19:04:55Z androsyn $
  * Dave Plonka <plonka@doit.wisc.edu>
  *
  * This product includes software developed by the University of Michigan,
@@ -72,7 +71,7 @@ prefix_toa2x(rb_prefix_t *prefix, char *buf, int buf_len, int with_len)
        static char tmp[6];
        if(prefix == NULL)
        {
-               strcpy(buf, "(NULL)");
+               rb_strlcpy(buf, "(NULL)", buf_len);
                return (buf);
        }
        inet_ntop(prefix->family, &prefix->add.sin, buf, buf_len);