]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-icmp6.c
NDOize safeputs() and safeputchar()
[tcpdump] / print-icmp6.c
index 7b5f3f3c2de6511677f9d7b702eacab95ee37b2b..a29a4f76b432efa616f6c55a50d31ba968f0147d 100644 (file)
@@ -1556,7 +1556,7 @@ dnsname_print(netdissect_options *ndo, const u_char *cp, const u_char *ep)
                                break;
                        }
                        while (i-- && cp < ep) {
-                               safeputchar(*cp);
+                               safeputchar(ndo, *cp);
                                cp++;
                        }
                        if (cp + 1 < ep && *cp)
@@ -1678,7 +1678,7 @@ icmp6_nodeinfo_print(netdissect_options *ndo, u_int icmp6len, const u_char *bp,
                                cp++;
                                ND_PRINT((ndo,", \""));
                                while (cp < ep) {
-                                       safeputchar(*cp);
+                                       safeputchar(ndo, *cp);
                                        cp++;
                                }
                                ND_PRINT((ndo,"\""));
@@ -1774,7 +1774,7 @@ icmp6_nodeinfo_print(netdissect_options *ndo, u_int icmp6len, const u_char *bp,
                                cp++;
                                ND_PRINT((ndo,", \""));
                                while (cp < ep) {
-                                       safeputchar(*cp);
+                                       safeputchar(ndo, *cp);
                                        cp++;
                                }
                                ND_PRINT((ndo,"\""));