From dc1bd102158f3dd2f08cbf058136af7981db84b2 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 23 Oct 2002 04:23:03 +0000 Subject: Put a leading "0x" in front of the hex value for ARCNET addresses when generating a filter expression to match the address, so it's parsed correctly (as a hex number rather than a string) if there are non-decimal digits (A through F). svn path=/trunk/; revision=6481 --- epan/column-utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/epan/column-utils.c b/epan/column-utils.c index 3de614313c..baf2deb061 100644 --- a/epan/column-utils.c +++ b/epan/column-utils.c @@ -1,7 +1,7 @@ /* column-utils.c * Routines for column utilities. * - * $Id: column-utils.c,v 1.23 2002/10/19 00:40:05 guy Exp $ + * $Id: column-utils.c,v 1.24 2002/10/23 04:23:03 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -478,7 +478,7 @@ col_set_addr(packet_info *pinfo, int col, address *addr, gboolean is_res, break; case AT_ARCNET: - snprintf(pinfo->cinfo->col_buf[col], COL_MAX_LEN, "%02X", + snprintf(pinfo->cinfo->col_buf[col], COL_MAX_LEN, "0x%02X", addr->data[0]); pinfo->cinfo->col_buf[col][COL_MAX_LEN - 1] = '\0'; if (is_src) -- cgit v1.2.3