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:
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)
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue