From: msweet Date: Tue, 9 Dec 2014 21:01:46 +0000 (+0000) Subject: Silence yet another bogus compiler warning. X-Git-Tag: v2.2b1~412 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=341efe62ec4b7d88d7f5e02bcbbf93162cabc44b;p=thirdparty%2Fcups.git Silence yet another bogus compiler warning. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12333 a1ca3aef-8c08-0410-bb20-df032aa958be --- diff --git a/cups/http.c b/cups/http.c index 493044fedd..f82bb0b868 100644 --- a/cups/http.c +++ b/cups/http.c @@ -4032,7 +4032,7 @@ http_debug_hex(const char *prefix, /* I - Prefix for line */ for (i = 0; i < bytes; i += 16) { for (j = 0, ptr = start; j < 16 && (i + j) < bytes; j ++, ptr += 2) - sprintf(ptr, "%02X", buffer[i + j] & 255); + snprintf(ptr, 3, "%02X", buffer[i + j] & 255); while (j < 16) {