mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
fixed a bug in the replacement inet_ntoa
(This used to be commit 32bd713712
)
This commit is contained in:
parent
a957abd1fd
commit
87325d9c6c
@ -281,7 +281,7 @@ duplicate a string
|
||||
#ifdef REPLACE_INET_NTOA
|
||||
char *rep_inet_ntoa(struct in_addr ip)
|
||||
{
|
||||
unsigned char *p = (unsigned char *)ip.s_addr;
|
||||
unsigned char *p = (unsigned char *)&ip.s_addr;
|
||||
static char buf[18];
|
||||
#if WORDS_BIGENDIAN
|
||||
slprintf(buf, 17, "%d.%d.%d.%d",
|
||||
|
Loading…
Reference in New Issue
Block a user