From a1fec03a31358715d1030eeeed2b69c7d0e2b29a Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 4 Aug 2003 17:32:46 +0000 Subject: Allow hyphens in preference module names, as the WAP protocols have IANA names, which include hyphens. svn path=/trunk/; revision=8127 --- prefs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'prefs.c') diff --git a/prefs.c b/prefs.c index 0d50dba5d7..a93468b67c 100644 --- a/prefs.c +++ b/prefs.c @@ -1,7 +1,7 @@ /* prefs.c * Routines for handling preferences * - * $Id: prefs.c,v 1.102 2003/07/22 03:14:28 gerald Exp $ + * $Id: prefs.c,v 1.103 2003/08/04 17:32:46 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -168,7 +168,7 @@ prefs_register_module_or_subtree(module_t *parent, const char *name, /* * Yes. * Make sure that only lower-case ASCII letters, numbers, - * underscores, and dots appear in the name. + * underscores, hyphens, and dots appear in the name. * * Crash if there is, as that's an error in the code; * you can make the title a nice string with capitalization, @@ -179,7 +179,7 @@ prefs_register_module_or_subtree(module_t *parent, const char *name, for (p = name; *p != '\0'; p++) g_assert(isascii(*p) && (islower(*p) || isdigit(*p) || *p == '_' || - *p == '.')); + *p == '-' || *p == '.')); /* * Make sure there's not already a module with that -- cgit v1.2.3