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.
This commit is contained in:
parent
132dbf089f
commit
15a946479c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue