cvs commit: src/sbin/ifconfig ifconfig.c

Peter Wemm peter at FreeBSD.org
Sat Oct 25 21:36:48 PDT 2003


peter       2003/10/25 21:36:47 PDT

  FreeBSD src repository

  Modified files:
    sbin/ifconfig        ifconfig.c 
  Log:
  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.
  
  Revision  Changes    Path
  1.92      +2 -2      src/sbin/ifconfig/ifconfig.c


More information about the cvs-src mailing list