From 7123097bae55ef1c9dd5d7f3ab7cf59a709a9dcf Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Wed, 15 Dec 2010 21:48:26 +0100 Subject: [PATCH] libratbox: Unbreak compile. --- libratbox/src/commio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libratbox/src/commio.c b/libratbox/src/commio.c index 56432a5..64cdfcb 100644 --- a/libratbox/src/commio.c +++ b/libratbox/src/commio.c @@ -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