diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2012-03-27 11:02:35 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2012-03-27 11:02:35 +0000 |
commit | ce20021df73a4bcc8d390f93442ffcb8c81dbbdc (patch) | |
tree | 359cea35899c8b3941c0e2c8b0d9c50cba1c2e56 /beos | |
parent | eb189092c761f0ba0485c4cd19477c0a578089f9 (diff) | |
download | netsurf-ce20021df73a4bcc8d390f93442ffcb8c81dbbdc.tar.gz netsurf-ce20021df73a4bcc8d390f93442ffcb8c81dbbdc.tar.bz2 |
Fix colour string matching. Lose unneeded case insensitivity in matching.
svn path=/trunk/netsurf/; revision=13739
Diffstat (limited to 'beos')
-rw-r--r-- | beos/system_colour.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/beos/system_colour.cpp b/beos/system_colour.cpp index cf47e1eda..921157c84 100644 --- a/beos/system_colour.cpp +++ b/beos/system_colour.cpp @@ -332,10 +332,8 @@ colour gui_system_colour_char(const char *name) unsigned int ccount; for (ccount = 0; ccount < colour_list_len; ccount++) { - if (strncasecmp(name, - colour_list[ccount].name, - colour_list[ccount].length) == 0) { - ret = colour_list[ccount].css_colour; + if (strcmp(name, colour_list[ccount].name) == 0) { + ret = colour_list[ccount].colour; break; } } |