s3: Fix 64-bit errors
commit8cca1d3927c9d46ef5a5978efa9ce82c0a1932aa
authorVolker Lendecke <vl@samba.org>
Wed, 23 Feb 2011 14:26:38 +0000 (23 15:26 +0100)
committerVolker Lendecke <vl@samba.org>
Wed, 23 Feb 2011 15:54:50 +0000 (23 16:54 +0100)
tree23c78ac11d4917b89a36c7fb53ecdb8a67754b02
parente953d4df99f056c2cfd6dad376ecbc731283c18d
s3: Fix 64-bit errors

Casting those variables will lead to sscanf believing that it sees pointers to
unsigned longs. These might be 64 bit long, thus sscanf will overwrite memory
it should not overwrite. Assigning the vars later is okay, there we get
automatic type conversion. C can be nasty ...

Christian, please check!
(cherry picked from commit dfd33bcbb81998e68c00d2a01aab6b5c468ecf87)
source3/winbindd/idmap_autorid.c