aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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);