Mercurial > emacs
view admin/charsets/kuten.awk @ 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 | e0e4e6a0599f |
children | ef719132ddfa |
line wrap: on
line source
/^[0-9]/ { ku=substr($1, 3, 2) + 32; ten=substr($1, 5, 2) + 32; printf "0x%02X%02X %s\n", ku, ten, $2; } # arch-tag: dade6b45-b4c5-42ab-9d49-d6bf23a710b6