]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-smb.c
Use more the EXTRACT_U_1() macro (57/n)
[tcpdump] / print-smb.c
index 85e69fa06ab6de76db74705bb677a3b6f632bb3e..247b97f42027b46a6ea8ad6643906700f346b141 100644 (file)
@@ -363,8 +363,9 @@ print_trans(netdissect_options *ndo,
        f4 = "|Data ";
     }
 
-    smb_fdata(ndo, words + 1, f1, min(words + 1 + 2 * words[0], maxbuf),
-        unicodestr);
+    smb_fdata(ndo, words + 1, f1,
+              min(words + 1 + 2 * EXTRACT_U_1(words), maxbuf),
+              unicodestr);
 
     ND_TCHECK_2(data1);
     bcc = EXTRACT_LE_U_2(data1);