0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 16:22:35 +01:00

libratbox: Unbreak compile.

This commit is contained in:
Jilles Tjoelker 2010-12-15 21:48:26 +01:00
parent fb28c74187
commit 86510a73f9

View file

@ -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