]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-telnet.c
Fixed some warnings, added print-zep.c to CMakeLists
[tcpdump] / print-telnet.c
index 204654ce23a900f9dc35db10eea71d920d8eb629..3bfb19a2f77362b57c83ebc5cac72b83d9b81168 100644 (file)
@@ -58,7 +58,6 @@
 #include "netdissect.h"
 #include "extract.h"
 
-static const char tstr[] = " [|telnet]";
 
 #define TELCMDS
 #define TELOPTS
@@ -501,7 +500,7 @@ done:
        return sp - osp;
 
 trunc:
-       ND_PRINT("%s", tstr);
+       nd_print_trunc(ndo);
 pktend:
        return -1;
 #undef FETCH
@@ -556,5 +555,5 @@ telnet_print(netdissect_options *ndo, const u_char *sp, u_int length)
        }
        return;
 trunc:
-       ND_PRINT("%s", tstr);
+       nd_print_trunc(ndo);
 }