summaryrefslogtreecommitdiffstats
path: root/source/lib/replace.c
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
commit32bd7137122eedf44dbb092da5ae3106d8fe994e (patch)
treee3e926798cca2b06680bc916c1aed0c6cbcf48d9 /source/lib/replace.c
parentddffbcbcb1284b6ead5f7f7b6665ba2456c0071a (diff)
downloadsamba-32bd7137122eedf44dbb092da5ae3106d8fe994e.tar.gz
samba-32bd7137122eedf44dbb092da5ae3106d8fe994e.tar.xz
samba-32bd7137122eedf44dbb092da5ae3106d8fe994e.zip
fixed a bug in the replacement inet_ntoa
Diffstat (limited to 'source/lib/replace.c')
-rw-r--r--source/lib/replace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/replace.c b/source/lib/replace.c
index b4fea3dc313..1421233c1ef 100644
--- a/source/lib/replace.c
+++ b/source/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",