diff options
author | Denis Ovsienko <infrastation@yandex.ru> | 2014-03-31 15:36:01 +0400 |
---|---|---|
committer | Denis Ovsienko <infrastation@yandex.ru> | 2014-03-31 15:43:22 +0400 |
commit | b46194277a029332c9d1b0ba38110cabc179210f (patch) | |
tree | eea385fe229552f462f9adbb8c15dda3425a27a8 /print-krb.c | |
parent | 69e1379bcf1f61b01954cbc289636e2b4339a349 (diff) | |
download | tcpdump-b46194277a029332c9d1b0ba38110cabc179210f.tar.gz |
spell "%s" format strings (complements 708a68a)
Make "%s" format string always reside in the print function call
explicitly such that the reader doesn't have to assess its safety.
Diffstat (limited to 'print-krb.c')
-rw-r--r-- | print-krb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/print-krb.c b/print-krb.c index e726cee9..bcc81bf1 100644 --- a/print-krb.c +++ b/print-krb.c @@ -137,7 +137,7 @@ krb4_print_hdr(netdissect_options *ndo, return (cp); trunc: - ND_PRINT((ndo, tstr)); + ND_PRINT((ndo, "%s", tstr)); return (NULL); #undef PRINT @@ -159,7 +159,7 @@ krb4_print(netdissect_options *ndo, kp = (struct krb *)cp; if ((&kp->type) >= ndo->ndo_snapend) { - ND_PRINT((ndo, tstr)); + ND_PRINT((ndo, "%s", tstr)); return; } @@ -218,7 +218,7 @@ krb4_print(netdissect_options *ndo, return; trunc: - ND_PRINT((ndo, tstr)); + ND_PRINT((ndo, "%s", tstr)); } void @@ -230,7 +230,7 @@ krb_print(netdissect_options *ndo, kp = (struct krb *)dat; if (dat >= ndo->ndo_snapend) { - ND_PRINT((ndo, tstr)); + ND_PRINT((ndo, "%s", tstr)); return; } |