]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Give wider types to sscanf to fix two warnings (u_short cannot be > 0xffff)
authorpeter <peter@FreeBSD.org>
Sun, 26 Oct 2003 04:36:47 +0000 (04:36 +0000)
committerpeter <peter@FreeBSD.org>
Sun, 26 Oct 2003 04:36:47 +0000 (04:36 +0000)
commit7f6ed48f658999a5345b7e16993c1b02ba03dc1d
tree0eaea6a2b7e5b3bfdb9d5a5f1977ca421f2c9756
parentb35f301d40f8b5c56a1b6afb9637f22e6c33001d
Give wider types to sscanf to fix two warnings (u_short cannot be > 0xffff)
and to make sure that we catch oversized arguments rather than silently
truncate them.  I dont know if sscanf will reject an integer if it will
not fit in the short return variable or not, but this way it should be
detected.
sbin/ifconfig/ifconfig.c