]> jfr.im git - irc/rqf/shadowircd.git/commitdiff
libratbox: Unbreak compile.
authorJilles Tjoelker <redacted>
Wed, 15 Dec 2010 20:48:26 +0000 (21:48 +0100)
committerJilles Tjoelker <redacted>
Wed, 15 Dec 2010 20:48:26 +0000 (21:48 +0100)
libratbox/src/commio.c

index 56432a50615c03c65da2579e0f6223138d06a23a..64cdfcb8765c0a06327c360d0cb8649db1057b25 100644 (file)
@@ -1197,7 +1197,7 @@ inet_ntop4(const unsigned char *src, char *dst, unsigned int size)
 {
        if(size < 16)
                return NULL;
-       return rb_strlcpy(dst, inetntoa((const char *)src), size);
+       return strcpy(dst, inetntoa((const char *)src));
 }
 
 /* const char *
@@ -1309,7 +1309,7 @@ inet_ntop6(const unsigned char *src, char *dst, unsigned int size)
        {
                return (NULL);
        }
-       return rb_strlcpy(dst, tmp, size);
+       return memcpy(dst, tmp, tp - tmp);
 }
 #endif