Mercurial > emacs
view src/s/unixware.h @ 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 | 695cf19ef79e |
children | 375f2633d815 a83a89ef11ef |
line wrap: on
line source
#include "usg5-4-2.h" #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__ptr - (FILE)->__base) /* arch-tag: d82e92e7-9443-4a60-a581-7f293cbae8a3 (do not change this comment) */