aboutsummaryrefslogtreecommitdiffstats
path: root/epan/strutil.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2009-03-30 03:40:12 +0000
committerGerald Combs <gerald@wireshark.org>2009-03-30 03:40:12 +0000
commit2c74073079162b8248cb5b26144c80f919dcf99a (patch)
tree81755eb76d351845b6e708ba8c7ebcb609716a24 /epan/strutil.c
parent808a4e2c3c5d80d6451ed8cce85e302d96225437 (diff)
Add a couple of size_t casts to packet-dnp.c.
Make the length arguments of format_text() and format_text_wsp() size_t's, since it's natural to use strlen() for that. svn path=/trunk/; revision=27891
Diffstat (limited to 'epan/strutil.c')
-rw-r--r--epan/strutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/strutil.c b/epan/strutil.c
index 724d595314..351a792946 100644
--- a/epan/strutil.c
+++ b/epan/strutil.c
@@ -162,7 +162,7 @@ get_token_len(const guchar *linep, const guchar *lineend,
* characters as C-style escapes, and return a pointer to it.
*/
gchar *
-format_text(const guchar *string, int len)
+format_text(const guchar *string, size_t len)
{
static gchar *fmtbuf[3];
static int fmtbuf_len[3];
@@ -268,7 +268,7 @@ format_text(const guchar *string, int len)
* which will be replaced by a space, and return a pointer to it.
*/
gchar *
-format_text_wsp(const guchar *string, int len)
+format_text_wsp(const guchar *string, size_t len)
{
static gchar *fmtbuf[3];
static int fmtbuf_len[3];