summaryrefslogtreecommitdiff
path: root/riscos
diff options
context:
space:
mode:
Diffstat (limited to 'riscos')
-rw-r--r--riscos/system_colour.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/riscos/system_colour.c b/riscos/system_colour.c
index 3ecc0c7db..104aa3bad 100644
--- a/riscos/system_colour.c
+++ b/riscos/system_colour.c
@@ -294,9 +294,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;
}