]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-eap.c
NDOize safeputs() and safeputchar()
[tcpdump] / print-eap.c
index 7b58851b5fc57ec9c7f1e43849fca79bbb134ef3..fba40e2721fcd910262669a51d519e6f5bced96f 100644 (file)
@@ -209,14 +209,14 @@ eap_print(netdissect_options *ndo _U_,
             case EAP_TYPE_IDENTITY:
                 if (len - 5 > 0) {
                     printf(", Identity: ");
-                    safeputs((const char *)tptr+5, len-5);
+                    safeputs(gndo, tptr + 5, len - 5);
                 }
                 break;
 
             case EAP_TYPE_NOTIFICATION:
                 if (len - 5 > 0) {
                     printf(", Notification: ");
-                    safeputs((const char *)tptr+5, len-5);
+                    safeputs(gndo, tptr + 5, len - 5);
                 }
                 break;