aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-07-23 18:14:36 +0000
committerGuy Harris <guy@alum.mit.edu>2001-07-23 18:14:36 +0000
commitbaa0f415137e45c001a32a8e778af3da4b6fd73f (patch)
tree4e0f7c0ec9bcaf66e3f76fb662bbb8ad6d3aa3b5
parentd7149c990b19f8385e4f7f052bb2366c9a4efb5d (diff)
Use an unsigned character when processing string lists, so that you can
use "isspace()" on them without getting screwed by negative array subscripts. svn path=/trunk/; revision=3780
-rw-r--r--prefs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/prefs.c b/prefs.c
index 24e3abc02f..a6425b4822 100644
--- a/prefs.c
+++ b/prefs.c
@@ -1,7 +1,7 @@
/* prefs.c
* Routines for handling preferences
*
- * $Id: prefs.c,v 1.59 2001/07/23 00:12:47 guy Exp $
+ * $Id: prefs.c,v 1.60 2001/07/23 18:14:36 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -378,7 +378,8 @@ get_string_list(gchar *str)
gint state = PRE_STRING, i = 0, j = 0;
gboolean backslash = FALSE;
- gchar cur_c, *slstr = NULL;
+ guchar cur_c;
+ gchar *slstr = NULL;
GList *sl = NULL;
/* Allocate a buffer for the first string. */