diff options
-rw-r--r-- | source3/lib/replace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/replace.c b/source3/lib/replace.c index b4fea3dc31..1421233c1e 100644 --- a/source3/lib/replace.c +++ b/source3/lib/replace.c @@ -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", |