From b46194277a029332c9d1b0ba38110cabc179210f Mon Sep 17 00:00:00 2001 From: Denis Ovsienko Date: Mon, 31 Mar 2014 15:36:01 +0400 Subject: 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. --- print-krb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'print-krb.c') 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; } -- cgit v1.2.1