]> git.saurik.com Git - apple/xnu.git/blobdiff - libkern/net/inet_ntop.c
xnu-6153.81.5.tar.gz
[apple/xnu.git] / libkern / net / inet_ntop.c
index c1fdba73c027d347da0ee9c81347cccef21d6863..2d898d0d1a0ec552bee8a351ea9d40edd4c83ed0 100644 (file)
@@ -170,7 +170,7 @@ inet_ntop6(const u_char *src, char *dst, socklen_t size)
                        tp += strlen(tp);
                        break;
                }
-               tp += snprintf(tp, sizeof(tmp), "%x", words[i]);
+               tp += scnprintf(tp, sizeof(tmp), "%x", words[i]);
        }
        /* Was it a trailing run of 0x00's? */
        if (best.base != -1 && (best.base + best.len) ==