/* Like "tvb_format_text()", but for null-padded strings; don't show the null padding characters as "\000".  */
gchar* tvb_format_stringzpad(tvbuff_t *tvb, const gint offset, const gint size)
/* Like "tvb_format_text()", but for null-padded strings; don't show the null padding characters as "\000".  */
gchar* tvb_format_stringzpad(tvbuff_t *tvb, const gint offset, const gint size)
{
	const guint8 *ptr, *p;
	gint          len;
	gint          stringlen;
	len = (size > 0) ? size : 0;
	ptr = ensure_contiguous(tvb, offset, size);
	for (p = ptr, stringlen = 0; stringlen < len && *p != '\0'; p++, stringlen++)
		;
	return format_text(ptr, stringlen);
}