libratbox: Unbreak compile.
This commit is contained in:
parent
fb28c74187
commit
86510a73f9
1 changed files with 2 additions and 2 deletions
|
@ -1198,7 +1198,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 *
|
||||||
|
@ -1310,7 +1310,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 a new issue