X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/f62c17e3786ac6643981d9ec68a1cd130ffcf149..da7b63972d83c1b755f3f096d3f2724261e77e65:/lib/compat.c 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;