Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal/epan tvbuff.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: Sun, 5 May 2002 16:07:53 -0500 (CDT)
guy         2002/05/05 16:07:53 CDT

  Modified files:
    epan                 tvbuff.c 
  Log:
  Have "tvb_ensure_length_remaining()" directly call
  "compute_offset_length()", and throw the exception it returns, rather
  than calling "tvb_length_remaining()" and throw BoundsError if it
  returns -1; this allows us to add additional exceptions without having
  to change "tvb_ensure_length_remaining()".
  
  Make "_tvb_get_nstringz()" static, as it's not used outside "tvbuff.c".
  
  Revision  Changes    Path
  1.36      +8 -11     ethereal/epan/tvbuff.c