Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal file.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: Thu, 23 May 2002 01:10:57 -0500 (CDT)
guy         2002/05/23 01:10:57 CDT

  Modified files:
    .                    file.c 
  Log:
  The "fname" argument to "save_cap_file()", and "cf->filename" - and thus
  "from_filename" - are both null-terminated strings; compare them with
  "strcmp", not "strncmp()".  ("cf->filename" is a "char *", so
  "sizeof(cf->filename)" is not the right third argument to "strncmp()" in
  any case, as it's the size of a pointer, which is probably either 4 or 8
  bytes.)
  
  Make the dialog box for "Can't save over current capture file" an
  ESD_TYPE_CRIT dialog box, as it's a fatal error.
  
  Revision  Changes    Path
  1.273     +12 -13    ethereal/file.c