libratbox: Unbreak compile.
This commit is contained in:
parent
8c76e73bcf
commit
7123097bae
|
@ -1197,7 +1197,7 @@ inet_ntop4(const unsigned char *src, char *dst, unsigned int size)
|
||||||
{
|
{
|
||||||
if(size < 16)
|
if(size < 16)
|
||||||
return NULL;
|
return NULL;
|
||||||
return rb_strlcpy(dst, inetntoa((const char *)src), size);
|
return strcpy(dst, inetntoa((const char *)src));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* const char *
|
/* const char *
|
||||||
|
@ -1309,7 +1309,7 @@ inet_ntop6(const unsigned char *src, char *dst, unsigned int size)
|
||||||
{
|
{
|
||||||
return (NULL);
|
return (NULL);
|
||||||
}
|
}
|
||||||
return rb_strlcpy(dst, tmp, size);
|
return memcpy(dst, tmp, tp - tmp);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue