From 65c2a918d47e70f9dcb41e32e45370c5c6a37db0 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 7 May 2001 08:59:48 +0000 Subject: [PATCH] forgot 1 place that used slprintf --- lib/compat.c | 4 ++-- 1 file 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; -- 2.34.1