summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-05-07 08:59:48 +0000
committerAndrew Tridgell <tridge@samba.org>2001-05-07 08:59:48 +0000
commit65c2a918d47e70f9dcb41e32e45370c5c6a37db0 (patch)
tree9380f448ca6389572f96effd36ba18766615a77f
parent8950ac03f8fd0fb645c7d2374195ea884d091f72 (diff)
downloadrsync-65c2a918d47e70f9dcb41e32e45370c5c6a37db0.tar.gz
forgot 1 place that used slprintf
-rw-r--r--lib/compat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compat.c b/lib/compat.c
index 426eee2a..e84da83c 100644
--- a/lib/compat.c
+++ b/lib/compat.c
@@ -138,10 +138,10 @@
unsigned char *p = (unsigned char *)&ip.s_addr;
static char buf[18];
#if WORDS_BIGENDIAN
- slprintf(buf, 18, "%d.%d.%d.%d",
+ snprintf(buf, 18, "%d.%d.%d.%d",
(int)p[0], (int)p[1], (int)p[2], (int)p[3]);
#else
- slprintf(buf, 18, "%d.%d.%d.%d",
+ snprintf(buf, 18, "%d.%d.%d.%d",
(int)p[3], (int)p[2], (int)p[1], (int)p[0]);
#endif
return buf;