]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Use more the EXTRACT_U_1() macro (57/n)
authorFrancois-Xavier Le Bail <[email protected]>
Sat, 16 Dec 2017 20:24:37 +0000 (21:24 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Sat, 16 Dec 2017 20:35:08 +0000 (21:35 +0100)
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);