Fix for 64bit: feed a pointer to the right size variable to scanf().
authorEgbert Eich <eich@freedesktop.org>
Sun, 3 Aug 2008 11:24:49 +0000 (13:24 +0200)
committerEgbert Eich <eich@freedesktop.org>
Sun, 3 Aug 2008 11:24:49 +0000 (13:24 +0200)
commit3046799a06ecb79211ef0f4a2db9de4eec7233fb
tree63bdfd7a1f7266cd0a434616c375ffb1a6f89758
parent4dcc8ae1a6903434def1a2706f7c68ff9e2a17c4
Fix for 64bit: feed a pointer to the right size variable to scanf().

XID is unsigned long, however %x in scanf takes a pointer to an unsigned int.
Thus with XID xid, a sscanf(..., "0x%x", &xid) will most likely produce the
wrong results.
xrandr.c