From 87325d9c6c7f2243dfcb237499c2f1def03caf84 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 29 Jul 1998 07:07:08 +0000 Subject: fixed a bug in the replacement inet_ntoa (This used to be commit 32bd7137122eedf44dbb092da5ae3106d8fe994e) --- source3/lib/replace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') 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", -- cgit