From ce20021df73a4bcc8d390f93442ffcb8c81dbbdc Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 27 Mar 2012 11:02:35 +0000 Subject: Fix colour string matching. Lose unneeded case insensitivity in matching. svn path=/trunk/netsurf/; revision=13739 --- monkey/system_colour.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'monkey') diff --git a/monkey/system_colour.c b/monkey/system_colour.c index 9c58b915e..6c1fd81b5 100644 --- a/monkey/system_colour.c +++ b/monkey/system_colour.c @@ -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; } -- cgit v1.2.3