summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-07-29 07:07:08 +0000
committerAndrew Tridgell <tridge@samba.org>1998-07-29 07:07:08 +0000
commit87325d9c6c7f2243dfcb237499c2f1def03caf84 (patch)
treea416c96dee6ae987d4a1735ec859c2c5ceb0aea7 /source3
parenta957abd1fd1bd891354abb1a3590627ae06a45e9 (diff)
downloadsamba-87325d9c6c7f2243dfcb237499c2f1def03caf84.tar.gz
samba-87325d9c6c7f2243dfcb237499c2f1def03caf84.tar.bz2
samba-87325d9c6c7f2243dfcb237499c2f1def03caf84.zip
fixed a bug in the replacement inet_ntoa
(This used to be commit 32bd7137122eedf44dbb092da5ae3106d8fe994e)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/replace.c2
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",