diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-05-23 06:10:56 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-05-23 06:10:56 +0000 |
commit | a0b8690230ad07647c286de514d71758696ff716 (patch) | |
tree | c1402d276cc225b708bcd6fc3b355f390bb5f7be /wiretap | |
parent | e2630eed794a5566892329e8f7ae9b35e7791899 (diff) | |
download | wireshark-a0b8690230ad07647c286de514d71758696ff716.tar.gz wireshark-a0b8690230ad07647c286de514d71758696ff716.tar.bz2 wireshark-a0b8690230ad07647c286de514d71758696ff716.zip |
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.
svn path=/trunk/; revision=5526
Diffstat (limited to 'wiretap')
0 files changed, 0 insertions, 0 deletions