diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | lib/widgets/ephy-location-entry.c | 8 |
2 files changed, 9 insertions, 5 deletions
@@ -1,5 +1,11 @@ 2004-02-12 Marco Pesenti Gritti <marco@gnome.org> + * lib/widgets/ephy-location-entry.c: (keyword_match): + + Simplify and hopefully fix mem corruption + +2004-02-12 Marco Pesenti Gritti <marco@gnome.org> + * embed/mozilla/ContentHandler.cpp: When open is explicitly requested from the dialog use diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c index 61fc47c40..1e14e217b 100644 --- a/lib/widgets/ephy-location-entry.c +++ b/lib/widgets/ephy-location-entry.c @@ -208,19 +208,17 @@ keyword_match (const char *list, for (i = 0; i < keyword_len; i++) { - if (p[i] == ' ') - goto next_char; - if (p[i] != keyword[i]) + { goto next_token; + } } return TRUE; next_token: - while (*p != ' ') p++; - next_char: + while (*p && *p != ' ') p++; if (*p) p++; } |