summaryrefslogtreecommitdiff
path: root/os/osinit.c
diff options
context:
space:
mode:
authorJames Cloos <cloos@jhcloos.com>2008-07-23 00:01:43 -0400
committerJames Cloos <cloos@jhcloos.com>2008-07-23 00:01:43 -0400
commit331cc3f0799a54910a99484264f76569beeee55a (patch)
treef3b204953cdbf48497ba1883d7d903139d31ff35 /os/osinit.c
parentbc3c03a3f3c091026310f0e8d55321cec570a0c5 (diff)
Fix LookupColor
Using strncasecmp(3) with the lenght of the user-supplied colour name will result in a false positive when the db key starts out with the same string. Eg, blue will also match BlueViolet (aka blue violet). Since the shorter strings occur first in the database, avoid such errors by treating a 0 result from strncasecmp(3) as a positive result when the key’s length is longer than the supplied string’s.
Diffstat (limited to 'os/osinit.c')
0 files changed, 0 insertions, 0 deletions