summaryrefslogtreecommitdiff
path: root/cocoa
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2012-03-27 11:02:35 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2012-03-27 11:02:35 +0000
commitce20021df73a4bcc8d390f93442ffcb8c81dbbdc (patch)
tree359cea35899c8b3941c0e2c8b0d9c50cba1c2e56 /cocoa
parenteb189092c761f0ba0485c4cd19477c0a578089f9 (diff)
downloadnetsurf-ce20021df73a4bcc8d390f93442ffcb8c81dbbdc.tar.gz
Fix colour string matching. Lose unneeded case insensitivity in matching.
svn path=/trunk/netsurf/; revision=13739
Diffstat (limited to 'cocoa')
-rw-r--r--cocoa/system_colour.m4
1 files changed, 1 insertions, 3 deletions
diff --git a/cocoa/system_colour.m b/cocoa/system_colour.m
index d528d7388..bd3e87f46 100644
--- a/cocoa/system_colour.m
+++ b/cocoa/system_colour.m
@@ -256,9 +256,7 @@ 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) {
+ if (strcmp(name, colour_list[ccount].name) == 0) {
ret = colour_list[ccount].colour;
break;
}