Ethereal-dev: [ethereal-dev] format_text and tvb_format_text?

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Richard Sharpe <sharpe@xxxxxxxxxx>
Date: Fri, 08 Sep 2000 12:50:24 +0900
Hi,

In tvbuffifying packet-bxxp, I find that I need to use format_text, but
there is no tvb_ version of this call.

I would rather not copy the bytes out of the tvbuff, so suggest a
tvb_format_text wrapper that retrieves a pointer with a max len, and calls
format_text with the resultant pointer. If there are less characters than
required in the buffer, there must be some way to tell tvb_format_text, to
stop things from blowing up.

Regards
-------
Richard Sharpe, sharpe@xxxxxxxxxx
Samba (Team member, www.samba.org), Ethereal (Team member, www.zing.org)
Contributing author, SAMS Teach Yourself Samba in 24 Hours
Author, Special Edition, Using Samba