1
0
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:
Andrew Tridgell 1998-07-29 07:07:08 +00:00
parent a957abd1fd
commit 87325d9c6c

View File

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