diff options
author | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-03-30 03:40:12 +0000 |
---|---|---|
committer | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-03-30 03:40:12 +0000 |
commit | a5dded473b9dac1c84ca6e0dcf403870f8adb65b (patch) | |
tree | 81755eb76d351845b6e708ba8c7ebcb609716a24 /epan/strutil.c | |
parent | dd86aa7c96e41047efdc69009a5092f63a9f2e0c (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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27891 f5534014-38df-0310-8fa8-9805f1628bb7
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]; |