From 5e8c053d68e3a6e73417faa838e921457ff4d9e0 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 7 Jan 2015 11:43:15 -0800 Subject: 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 --- epan/to_str.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/to_str.c') 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; -- cgit v1.2.1