cvs commit: src/usr.bin/sockstat sockstat.c

Robert Drehmel robert at FreeBSD.org
Fri May 9 02:11:28 PDT 2003


robert      2003/05/09 02:11:27 PDT

  FreeBSD src repository

  Modified files:
    usr.bin/sockstat     sockstat.c 
  Log:
  To reserve space for 65536 bits, allocate
  65536 / (sizeof(int) * CHAR_BITS) `int's instead of
  65536 / (sizeof(int) * CHAR_BITS) bytes to avoid a possible
  segmentation fault if ports above 16383 are specified via the
  -p option on a platform with 4 byte wide ints.
  
  Approved by:    re (bmah)
  Reported by:    Marco Wertejuk <wertejuk at mwcis.com>
  
  Revision  Changes    Path
  1.7       +1 -1      src/usr.bin/sockstat/sockstat.c


More information about the cvs-src mailing list