From 51b4b3fb3829c415dd6e3277ca226440c1f403c1 Mon Sep 17 00:00:00 2001 From: Adrian Robert Date: Fri, 21 Aug 2009 19:36:50 +0000 Subject: [PATCH] (ns_get_color): fix typo in last change --- src/nsterm.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nsterm.m b/src/nsterm.m index 9c7d35fcfee..c6bcf68e3b8 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -1378,7 +1378,7 @@ ns_get_color (const char *name, NSColor **col) else if (!strncmp(name, "rgb:", 4)) /* A newer X11 format -- rgb:r/g/b */ { strcpy(hex, name + 4); - scaling = (strlen(hex) - 2) / 4; + scaling = (strlen(hex) - 2) / 3; } else if (name[0] == '#') /* An old X11 format; convert to newer */ { -- 2.39.2