From 86510a73f90f52e98438d763cda34d5ed70d7148 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 8e7f7da10..163321892 100644 --- a/libratbox/src/commio.c +++ b/libratbox/src/commio.c @@ -1198,7 +1198,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 * @@ -1310,7 +1310,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