From: Adrian Robert Date: Fri, 21 Aug 2009 19:36:50 +0000 (+0000) Subject: (ns_get_color): fix typo in last change X-Git-Tag: emacs-pretest-23.1.90~1753 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=51b4b3fb3829c415dd6e3277ca226440c1f403c1;p=emacs.git (ns_get_color): fix typo in last change --- 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 */ {