Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal text2pcap.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: Sat, 24 Nov 2001 01:52:06 -0600 (CST)
guy         2001/11/24 01:52:06 CST

  Modified files:
    .                    text2pcap.c 
  Log:
  If the expected "next offset" doesn't match the offset we read, it may
  merely mean that we mistakenly treated stuff from the text-dump part of
  the file we're reading as if it were hex byte data (e.g., if the first
  non-white-space part of the text dump was a 2-digit hex number).  If the
  offset we read is less than the expected next offset, assume that's the
  problem, and throw away enough extra bytes to make the offset we read
  the expected next offset.
  
  "getopt()" will never, for any option that the "getopt()" string says
  takes an argument, leave "optarg" null; if no argument was specified,
  it'll return an error, so there's no need to check for a null "optarg".
  
  Revision  Changes    Path
  1.5       +36 -18    ethereal/text2pcap.c