J Raynor
2015-02-07 22:05:56 UTC
The colour_fromstring function intends to accept string values â90" through â97", but doesnât because it checks incorrectly.
Hereâs how it checks â91â:
if (strcasecmp(s, "brightred") == 0 ||
(s[0] == '9' && s[1] == '1' && s[1] == '\0'))
return (91);
Notice it checks s[1] twice, instead of checking s[2].
Iâve attached a patch which fixes the problem.
Also, at http://tmux.sourceforge.net/ <http://tmux.sourceforge.net/>, the âget the development versionâ link is broken and has been for little while.
Hereâs how it checks â91â:
if (strcasecmp(s, "brightred") == 0 ||
(s[0] == '9' && s[1] == '1' && s[1] == '\0'))
return (91);
Notice it checks s[1] twice, instead of checking s[2].
Iâve attached a patch which fixes the problem.
Also, at http://tmux.sourceforge.net/ <http://tmux.sourceforge.net/>, the âget the development versionâ link is broken and has been for little while.