aboutsummaryrefslogtreecommitdiffstats
path: root/prefs.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-08-04 17:32:46 +0000
committerGuy Harris <guy@alum.mit.edu>2003-08-04 17:32:46 +0000
commita1fec03a31358715d1030eeeed2b69c7d0e2b29a (patch)
tree0e8461b5c98cd36f79b4ce70c1d64c4f162072cb /prefs.c
parentddd408ad2f3b29b272b9234476aa19c89973611b (diff)
Allow hyphens in preference module names, as the WAP protocols have IANA
names, which include hyphens. svn path=/trunk/; revision=8127
Diffstat (limited to 'prefs.c')
-rw-r--r--prefs.c6
1 files changed, 3 insertions, 3 deletions
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 <gerald@ethereal.com>
@@ -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