aboutsummaryrefslogtreecommitdiffstats
path: root/epan/address_types.c
diff options
context:
space:
mode:
authorRobert Sauter <sauter@locoslab.com>2018-02-25 09:05:32 +0100
committerRoland Knall <rknall@gmail.com>2018-03-07 23:05:28 +0000
commiteefa76a7c810bd74d95d571362f0ad5fda691e70 (patch)
treed9e872726020d2fca47635ecae47288e4a32b423 /epan/address_types.c
parentcc45082635c9cfed0112727b1b10a0f863bce13c (diff)
address_types: fix returned length of eui64_addr_to_str
Change-Id: I5ed1f20419b45c2d443953eaf74b540d4fcc23c6 Reviewed-on: https://code.wireshark.org/review/26090 Petri-Dish: Roland Knall <rknall@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'epan/address_types.c')
-rw-r--r--epan/address_types.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/address_types.c b/epan/address_types.c
index 8b359c8564..e8031f3388 100644
--- a/epan/address_types.c
+++ b/epan/address_types.c
@@ -406,7 +406,7 @@ static int eui64_addr_to_str(const address* addr, gchar *buf, int buf_len _U_)
{
buf = bytes_to_hexstr_punct(buf, (const guint8 *)addr->data, 8, ':');
*buf = '\0'; /* NULL terminate */
- return (int)(strlen(buf)+1);
+ return EUI64_STR_LEN;
}
static int eui64_str_len(const address* addr _U_)