diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-01-07 11:43:15 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-01-07 19:43:40 +0000 |
commit | 5e8c053d68e3a6e73417faa838e921457ff4d9e0 (patch) | |
tree | 0663e062a5b9b2a08c7a9878a9b0f34a4811df26 /epan/to_str.c | |
parent | ccce7abaf465068a0d633795d01ec293d4ae7ddf (diff) | |
download | wireshark-5e8c053d68e3a6e73417faa838e921457ff4d9e0.tar.gz |
Squelch a compiler warning.
No need for buflen to be bigger than len, which it will be on LP64 and
LLP64 platforms if it's size_t and len is guint32.
Change-Id: Iffd2940187180cde1ad55ff7d3bd7c45acf22eba
Reviewed-on: https://code.wireshark.org/review/6380
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/to_str.c')
-rw-r--r-- | epan/to_str.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/to_str.c b/epan/to_str.c index 23629dac52..36ede9bbe8 100644 --- a/epan/to_str.c +++ b/epan/to_str.c @@ -169,7 +169,7 @@ const gchar * bytestring_to_str(wmem_allocator_t *scope, const guint8 *ad, const guint32 len, const char punct) { gchar *buf; - size_t buflen = len; + guint32 buflen = len; gchar *buf_ptr; int truncated = 0; |