#include <stdio.h>
#include "netdissect.h"
+#include "extract.h"
#define ASCII_LINELENGTH 300
#define HEXDUMP_BYTES_PER_LINE 16
length = caplength;
ND_PRINT((ndo, "\n"));
while (length > 0) {
- s = *cp++;
+ s = EXTRACT_U_1(cp);
+ cp++;
length--;
if (s == '\r') {
/*
*
* In the middle of a line, just print a '.'.
*/
- if (length > 1 && *cp != '\n')
+ if (length > 1 && EXTRACT_U_1(cp) != '\n')
ND_PRINT((ndo, "."));
} else {
if (!ND_ISGRAPH(s) &&