aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2016-02-16 23:25:21 -0800
committerPaul Eggert2016-02-16 23:25:59 -0800
commit15a946479c96fdce693c13acfe41a66266ffcadb (patch)
tree924d1eb7ce430885511d03b90acc3a73658f639a /src
parent132dbf089ffdc6c77c9383f225f2458d21c869a5 (diff)
downloademacs-15a946479c96fdce693c13acfe41a66266ffcadb.tar.gz
emacs-15a946479c96fdce693c13acfe41a66266ffcadb.zip
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')
-rw-r--r--src/xfaces.c2
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. */)
6207 int num; 6207 int num;
6208 6208
6209 while (fgets (buf, sizeof (buf), fp) != NULL) { 6209 while (fgets (buf, sizeof (buf), fp) != NULL) {
6210 if (sscanf (buf, "%u %u %u %n", &red, &green, &blue, &num) == 3) 6210 if (sscanf (buf, "%d %d %d %n", &red, &green, &blue, &num) == 3)
6211 { 6211 {
6212#ifdef HAVE_NTGUI 6212#ifdef HAVE_NTGUI
6213 int color = RGB (red, green, blue); 6213 int color = RGB (red, green, blue);