]> rtime.felk.cvut.cz Git - socketcan-devel.git/commit
Fix datatype issue in sscanf() on 64bit systems.
authorhartkopp <hartkopp@030b6a49-0b11-0410-94ab-b0dab22257f2>
Sat, 25 Sep 2010 10:24:37 +0000 (10:24 +0000)
committerhartkopp <hartkopp@030b6a49-0b11-0410-94ab-b0dab22257f2>
Sat, 25 Sep 2010 10:24:37 +0000 (10:24 +0000)
commit2f87652dccbcdf4bb2aad0fd23b2f91807e334cf
treeaa2b309707061a726bcbddd9a88639f422c4318b
parent369f9e23b0a2e24260f23504ab9d40a520e98587
Fix datatype issue in sscanf() on 64bit systems.

On 64bit systems a 'long' is a 64bit value but the target values of scanf()
are always 32bit in the affected code - which means just an 'unsigned int'.
Unsigned int is fine on 32 and 64 bit systems.

Thanks to Andre Naujoks for reporting this issue.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@1197 030b6a49-0b11-0410-94ab-b0dab22257f2
can-utils/candump.c
can-utils/cangw.c