diff src/ChangeLog @ 103359:eb941fcd33b4

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.
author Jim Meyering <jim@meyering.net>
date Tue, 09 Jun 2009 05:57:35 +0000
parents c4fd8dd74fc5
children d708c0f7d79c
line wrap: on
line diff
--- a/src/ChangeLog	Tue Jun 09 03:44:48 2009 +0000
+++ b/src/ChangeLog	Tue Jun 09 05:57:35 2009 +0000
@@ -1,3 +1,11 @@
+2009-06-09  Jim Meyering  <meyering@redhat.com>
+
+	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.
+
 2009-06-09  Kenichi Handa  <handa@m17n.org>
 
 	* charset.c (Fmap_charset_chars): In docstring, state clearly that