2009-02-17, 10:04
Better to fix the scanf, not the type passed to it.
Fixed in http://trac.xbmc.org/changeset/17776
Fixed in http://trac.xbmc.org/changeset/17776
Code:
Index: xbmc-xrandr.c
===================================================================
--- xbmc-xrandr.c (revision 17774)
+++ xbmc-xrandr.c (working copy)
-440,7 +440,7 @@
XID xid;
int index;
- if ((valid & name_xid) && sscanf (string, "0x%x", &xid) == 1)
+ if ((valid & name_xid) && sscanf (string, "0x%lx", &xid) == 1)
set_name_xid (name, xid);
else if ((valid & name_index) && sscanf (string, "%d", &index) == 1)
set_name_index (name, index);