]> rtime.felk.cvut.cz Git - sojka/can-utils.git/commit
Fix datatype issue in sscanf() on 64bit systems.
authorOliver Hartkopp <socketcan@hartkopp.net>
Sat, 25 Sep 2010 10:24:37 +0000 (10:24 +0000)
committerOliver Hartkopp <socketcan@hartkopp.net>
Sat, 25 Sep 2010 10:24:37 +0000 (10:24 +0000)
commitd3468d907f94c01f8b41c8142007529bae9a6ccc
tree231d8c11e06ddd3a3a2913812b2a3596944b4477
parent1463ee4ce48f638edef69ee430a3ef4dc9acc17e
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.
candump.c
cangw.c