]> git.eshelyaron.com Git - emacs.git/commit
x-load-color-file: avoid array bounds error
authorJim Meyering <jim@meyering.net>
Tue, 9 Jun 2009 05:57:35 +0000 (05:57 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 9 Jun 2009 05:57:35 +0000 (05:57 +0000)
commit40aa3f13c674e5c78bb6c0e85de8f5f0ef3690a7
tree3f85141cdf4468a10dfa6323124530907a37f41d
parent8c9d5f9f86b177497bcff5b41ebb51bf3cd9eadc
x-load-color-file: avoid array bounds error

x-load-color-file expects each line of input to be of the form
"R G B name".  But if "name" is missing, it would read name[-1],
and if that value is '\n', zero it.
* xfaces.c (Fx_load_color_file): Handle missing color name.
src/ChangeLog
src/xfaces.c