libratbox: Unbreak compile.

This commit is contained in:
Jilles Tjoelker 2010-12-15 21:48:26 +01:00
parent 8c76e73bcf
commit 7123097bae
1 changed files with 2 additions and 2 deletions

View 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