projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
132dbf0
)
Fix x-load-color-file pointer signedness
author
Paul Eggert
<eggert@cs.ucla.edu>
Wed, 17 Feb 2016 07:25:21 +0000
(23:25 -0800)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Wed, 17 Feb 2016 07:25:59 +0000
(23:25 -0800)
* 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.
src/xfaces.c
patch
|
blob
|
history
diff --git
a/src/xfaces.c
b/src/xfaces.c
index 2880eedc1e5be5adbbe9891c4151913444457719..7762e0f61e95016ac9c95bf3cabb1c8ce9789fdb 100644
(file)
--- 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);