]> The Tcpdump Group git mirrors - tcpdump/commitdiff
BOOTP: try to fix 2 newly added compile warnings
authorDenis Ovsienko <[email protected]>
Thu, 27 Mar 2014 09:14:14 +0000 (13:14 +0400)
committerDenis Ovsienko <[email protected]>
Thu, 27 Mar 2014 09:15:30 +0000 (13:15 +0400)
format not a string literal and no format arguments [-Wformat-security]

print-bootp.c

index c714f939e778513b34aea5a13db01b03c1ee89dd..9b163564bb44e5d70ebd49c0a7140feb50186dfa 100644 (file)
@@ -586,7 +586,7 @@ rfc1048_print(netdissect_options *ndo,
                                }
                                tag = *bp++;
                                --len;
-                               ND_PRINT((ndo, tok2str(nbo2str, NULL, tag)));
+                               ND_PRINT((ndo, "%s", tok2str(nbo2str, NULL, tag)));
                                break;
 
                        case TAG_OPT_OVERLOAD:
@@ -598,7 +598,7 @@ rfc1048_print(netdissect_options *ndo,
                                }
                                tag = *bp++;
                                --len;
-                               ND_PRINT((ndo, tok2str(oo2str, NULL, tag)));
+                               ND_PRINT((ndo, "%s", tok2str(oo2str, NULL, tag)));
                                break;
 
                        case TAG_CLIENT_FQDN: