[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-25 15a9464: Fix x-load-color-file pointer signedness
From: |
Paul Eggert |
Subject: |
[Emacs-diffs] emacs-25 15a9464: Fix x-load-color-file pointer signedness |
Date: |
Wed, 17 Feb 2016 07:26:36 +0000 |
branch: emacs-25
commit 15a946479c96fdce693c13acfe41a66266ffcadb
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>
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.
---
src/xfaces.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/xfaces.c b/src/xfaces.c
index 2880eed..7762e0f 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);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-25 15a9464: Fix x-load-color-file pointer signedness,
Paul Eggert <=