aboutsummaryrefslogtreecommitdiffstats
path: root/print-wb.c
diff options
context:
space:
mode:
Diffstat (limited to 'print-wb.c')
-rw-r--r--print-wb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/print-wb.c b/print-wb.c
index c0df48d74718..f90170b80e45 100644
--- a/print-wb.c
+++ b/print-wb.c
@@ -203,7 +203,7 @@ wb_id(netdissect_options *ndo,
len -= sizeof(*io) * nid;
io = (const struct id_off *)(id + 1);
cp = (const char *)(io + nid);
- if (ND_TTEST2(cp, len)) {
+ if (ND_TTEST2(*cp, len)) {
ND_PRINT((ndo, "\""));
fn_print(ndo, (const u_char *)cp, (const u_char *)cp + len);
ND_PRINT((ndo, "\""));