Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal/wiretap ngsniffer.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 25 Apr 2002 17:05:40 -0500 (CDT)
guy         2002/04/25 17:05:40 CDT

  Modified files:
    wiretap              ngsniffer.c 
  Log:
  Cast the sum of "ngsniffer->rand.nextout" and "delta" to "size_t" before
  comparing with the "size_t" value "ngsniffer->rand.nbytes", rather than
  just casting "ngsniffer->rand.nextout" to "unsigned" - if "unsigned" is
  shorter than "long", the latter doesn't do what you want.
  
  Revision  Changes    Path
  1.78      +2 -2      ethereal/wiretap/ngsniffer.c