]> git.saurik.com Git - apple/xnu.git/blobdiff - libkern/net/inet_ntop.c
xnu-7195.60.75.tar.gz
[apple/xnu.git] / libkern / net / inet_ntop.c
index 2d898d0d1a0ec552bee8a351ea9d40edd4c83ed0..f0711c15058c3026524359f70d1fdc10188be4ac 100644 (file)
@@ -164,7 +164,8 @@ inet_ntop6(const u_char *src, char *dst, socklen_t size)
                if (i == 6 && best.base == 0 && (best.len == 6 ||
                    (best.len == 7 && words[7] != 0x0001) ||
                    (best.len == 5 && words[5] == 0xffff))) {
-                       if (!inet_ntop4(src + 12, tp, sizeof tmp - (tp - tmp))) {
+                       if (!inet_ntop4(src + 12, tp,
+                           (socklen_t)(sizeof tmp - (tp - tmp)))) {
                                return NULL;
                        }
                        tp += strlen(tp);