Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal packet-iscsi.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: Mon, 16 Jul 2001 01:06:07 -0500 (CDT)
guy         2001/07/16 01:06:07 CDT

  Modified files:
    .                    packet-iscsi.c 
  Log:
  Get the length of a null-terminated string with "tvb_strnlen()", not by
  getting a pointer to the first byte of the string with "tvb_get_ptr()"
  and then assuming you can safely do a "strlen()" with that pointer
  (it's not guaranteed that you can, as the terminating null byte might
  not be in the tvbuff).
  
  Add the resulting string with "proto_tree_add_item()".
  
  Revision  Changes    Path
  1.9       +6 -5      ethereal/packet-iscsi.c