]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Silence yet another bogus compiler warning.
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Tue, 9 Dec 2014 21:01:46 +0000 (21:01 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Tue, 9 Dec 2014 21:01:46 +0000 (21:01 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12333 a1ca3aef-8c08-0410-bb20-df032aa958be

cups/http.c

index 493044fedd650f42b32149172abb0404b09a431b..f82bb0b8682b0da58dfa82b70f7b12fd24026d77 100644 (file)
@@ -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)
     {