diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-10-23 04:23:03 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-10-23 04:23:03 +0000 |
commit | dc1bd102158f3dd2f08cbf058136af7981db84b2 (patch) | |
tree | 48161f595e01e60769dce2fee58561b94bd90df1 | |
parent | b9e2d694c4e1981a852fb9bfce5afbf02d0c9c2c (diff) |
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
-rw-r--r-- | epan/column-utils.c | 4 |
1 files 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 <gerald@ethereal.com> @@ -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) |