Use wireshark (instead of ether) for temp file name prefix.

svn path=/trunk/; revision=27992
This commit is contained in:
Bill Meier 2009-04-08 12:22:12 +00:00
parent 27026d0eb1
commit 013db77404
2 changed files with 2 additions and 2 deletions

View File

@ -1747,7 +1747,7 @@ capture_loop_open_output(capture_options *capture_opts, int *save_file_fd,
is_tempfile = FALSE;
} else {
/* Choose a random name for the temporary capture buffer */
*save_file_fd = create_tempfile(tmpname, sizeof tmpname, "ether");
*save_file_fd = create_tempfile(tmpname, sizeof tmpname, "wireshark");
capfile_name = g_strdup(tmpname);
is_tempfile = TRUE;
}

View File

@ -100,7 +100,7 @@ static const char *E_tmpdir;
#define P_tmpdir "/var/tmp"
#endif
/* create a tempfile with the given prefix (e.g. "ether")
/* create a tempfile with the given prefix (e.g. "wireshark")
* namebuf (and namebuflen) should be 128+1 bytes long (BTW: why?)
* returns the file descriptor of the new tempfile and
* the name of the new file in namebuf