Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal packet-yhoo.c packet-zebra.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:09:02 -0500 (CDT)
guy         2001/07/16 01:09:02 CDT

  Modified files:
    .                    packet-yhoo.c packet-zebra.c 
  Log:
  Use "proto_tree_add_item()", not "proto_tree_add_string()" with a
  "tvb_get_ptr()" call using the same offset and length as the
  "proto_tree_add_string()" call, to add FT_STRING fields to the tree.
  (The value argument to "proto_tree_add_string()" must be
  null-terminated, and there's no guarantee that the string you get from
  the "tvb_get_ptr()" call will be null-terminated;
  "proto_tree_add_item()" with an FT_STRING field, however, will
  null-terminate the value.)
  
  Fix the length argument in the call for the last item in the Yahoo
  Messenger tree.
  
  Revision  Changes    Path
  1.18      +21 -21    ethereal/packet-yhoo.c
  1.14      +6 -11     ethereal/packet-zebra.c