aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2003-09-09 02:41:00 +0000
committerGerald Combs <gerald@wireshark.org>2003-09-09 02:41:00 +0000
commit4c19deb2066cceaaddfb5db182e422d51900116c (patch)
tree3663412095aa0f1942455c3305c1b87bfa0d694e /gtk
parent81fc518ec6eb6366b2143e6b56d0b35307a76812 (diff)
In the Find dialog add periods or dashes to the list of allowed hex
separator characters. Update the Ethereal man page accordingly. svn path=/trunk/; revision=8420
Diffstat (limited to 'gtk')
-rw-r--r--gtk/find_dlg.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/find_dlg.c b/gtk/find_dlg.c
index 5472b78482..1978f31c8e 100644
--- a/gtk/find_dlg.c
+++ b/gtk/find_dlg.c
@@ -1,7 +1,7 @@
/* find_dlg.c
* Routines for "find frame" window
*
- * $Id: find_dlg.c,v 1.36 2003/09/05 06:16:10 sahlberg Exp $
+ * $Id: find_dlg.c,v 1.37 2003/09/09 02:41:00 gerald Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -486,8 +486,8 @@ convert_string_to_hex(const char *string, size_t *nbytes)
break;
if (isspace(c))
continue; /* allow white space */
- if (c==':')
- continue; /* skip any ':' between bytes */
+ if (c==':' || c=='.' || c=='-')
+ continue; /* skip any ':', '.', or '-' between bytes */
if (!isxdigit(c)) {
/* Not a valid hex digit - fail */
return NULL;
@@ -526,8 +526,8 @@ convert_string_to_hex(const char *string, size_t *nbytes)
break;
if (isspace(c))
continue; /* allow white space */
- if (c==':')
- continue; /* skip any ':' between bytes */
+ if (c==':' || c=='.' || c=='-')
+ continue; /* skip any ':', '.', or '-' between bytes */
/* From the loop above, we know this is a hex digit */
if (isdigit(c))
byte_val = c - '0';