Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal 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@xxxxxxxxxxxx>
Date: Sun, 20 Aug 2000 04:07:27 -0500 (CDT)
guy         2000/08/20 04:07:23 CDT

  Modified files:
    .                    packet-zebra.c 
  Log:
  Use "memset()" to zero byte arrays, and "memcpy" to copy into them.
  
  When copying IPv4 or IPv6 addresses, copy the minimum of the number of
  bytes in the source and the destination, so that if the prefix length is
  bogus, we don't overwrite the buffer.
  
  "tvb_get_ptr()" returns a "guint8 *"; give the variable to which its
  value is assigned that type.
  
  Revision  Changes    Path
  1.3       +7 -9      ethereal/packet-zebra.c