diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2016-02-16 23:25:21 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2016-02-16 23:25:59 -0800 |
commit | 15a946479c96fdce693c13acfe41a66266ffcadb (patch) | |
tree | 924d1eb7ce430885511d03b90acc3a73658f639a /src/xfaces.c | |
parent | 132dbf089ffdc6c77c9383f225f2458d21c869a5 (diff) | |
download | emacs-15a946479c96fdce693c13acfe41a66266ffcadb.tar.gz |
Fix x-load-color-file pointer signedness
* src/xfaces.c (Fx_load_color_file) [!HAVE_X_WINDOWS]:
For sscanf and int *, use %d, not %u.
Problem found on Ubuntu 15.10 x32, which lacks X support.
Diffstat (limited to 'src/xfaces.c')
-rw-r--r-- | src/xfaces.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xfaces.c b/src/xfaces.c index 2880eedc1e5..7762e0f61e9 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -6207,7 +6207,7 @@ where R,G,B are numbers between 0 and 255 and name is an arbitrary string. */) int num; while (fgets (buf, sizeof (buf), fp) != NULL) { - if (sscanf (buf, "%u %u %u %n", &red, &green, &blue, &num) == 3) + if (sscanf (buf, "%d %d %d %n", &red, &green, &blue, &num) == 3) { #ifdef HAVE_NTGUI int color = RGB (red, green, blue); |