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@xxxxxxxxxxxxxxxxx>
Date: Fri, 8 Aug 2003 03:19:51 -0500 (CDT)
guy         2003/08/08 03:19:51 CDT

  Modified files:
    epan                 tvbuff.c 
  Log:
  A bufsize of 0 makes no sense in either "tvb_get_nstringz()" or
  "tvb_get_nstringz0()", as it means there's no room even for the
  terminating NUL; abort if "_tvb_get_nstringz()" is passed a bufsize of
  0.
  
  Don't throw an exception in "tvb_get_nstringz0()" if
  "_tvb_get_nstringz()" returns 0 - that just means we have an empty
  string.
  
  Revision  Changes    Path
  1.48      +8 -11     ethereal/epan/tvbuff.c