diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-07-23 18:14:36 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-07-23 18:14:36 +0000 |
commit | baa0f415137e45c001a32a8e778af3da4b6fd73f (patch) | |
tree | 4e0f7c0ec9bcaf66e3f76fb662bbb8ad6d3aa3b5 | |
parent | d7149c990b19f8385e4f7f052bb2366c9a4efb5d (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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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. */ |