diff options
author | Gerald Combs <gerald@wireshark.org> | 2009-03-30 03:40:12 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2009-03-30 03:40:12 +0000 |
commit | 2c74073079162b8248cb5b26144c80f919dcf99a (patch) | |
tree | 81755eb76d351845b6e708ba8c7ebcb609716a24 /epan/strutil.c | |
parent | 808a4e2c3c5d80d6451ed8cce85e302d96225437 (diff) | |
download | wireshark-2c74073079162b8248cb5b26144c80f919dcf99a.tar.gz wireshark-2c74073079162b8248cb5b26144c80f919dcf99a.tar.bz2 wireshark-2c74073079162b8248cb5b26144c80f919dcf99a.zip |
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.c | 4 |
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]; |