X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/91d032ddef9c198e4a78bccebbe33b38b6f5949b..0845bc813c1cc48b18cdefff0b387c110647463c:/util-print.c diff --git a/util-print.c b/util-print.c index cfdcfe8c..4cefc756 100644 --- a/util-print.c +++ b/util-print.c @@ -69,6 +69,7 @@ int32_t thiszone; /* seconds offset from gmt to local time */ * Print out a null-terminated filename (or other ascii string). * If ep is NULL, assume no truncation check is needed. * Return true if truncated. + * Stop at ep (if given) or before the null char, whichever is first. */ int fn_print(netdissect_options *ndo, @@ -101,6 +102,7 @@ fn_print(netdissect_options *ndo, * Print out a counted filename (or other ascii string). * If ep is NULL, assume no truncation check is needed. * Return true if truncated. + * Stop at ep (if given) or after n bytes, whichever is first. */ int fn_printn(netdissect_options *ndo, @@ -128,6 +130,8 @@ fn_printn(netdissect_options *ndo, * Print out a null-padded filename (or other ascii string). * If ep is NULL, assume no truncation check is needed. * Return true if truncated. + * Stop at ep (if given) or after n bytes or before the null char, + * whichever is first. */ int fn_printzp(netdissect_options *ndo,