aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-01-24 19:32:13 +0000
committerGuy Harris <guy@alum.mit.edu>2000-01-24 19:32:13 +0000
commitdef30cb94fe0ae4341b1696ee73d35d1b35e9bc4 (patch)
treebeb63d65d567115d19e513628093797e59784f6c /file.c
parent197cfc585ef2313a80d65e193a66c268a4f81c49 (diff)
Open files with "rb" rather than "r" - this may fix up the problems
Gilbert alluded to with reading capture files on Win32 systems. svn path=/trunk/; revision=1541
Diffstat (limited to 'file.c')
-rw-r--r--file.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/file.c b/file.c
index ec95387014..a07ade0503 100644
--- a/file.c
+++ b/file.c
@@ -1,7 +1,7 @@
/* file.c
* File I/O routines
*
- * $Id: file.c,v 1.154 2000/01/18 08:37:55 guy Exp $
+ * $Id: file.c,v 1.155 2000/01/24 19:32:13 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -308,7 +308,7 @@ read_cap_file(capture_file *cf)
wtap_close(cf->wth);
cf->wth = NULL;
cf->filed = open(cf->filename, O_RDONLY);
- cf->fh = filed_open(cf->filed, "r");
+ cf->fh = filed_open(cf->filed, "rb");
cf->current_frame = cf->first_displayed;
thaw_clist(cf);
@@ -394,7 +394,7 @@ start_tail_cap_file(char *fname, gboolean is_tempfile, capture_file *cf)
from Wiretap, which will be closed when we close the file; we
want it to remain open even after that, so that we can read
packet data from it. */
- cf->fh = file_open(fname, "r");
+ cf->fh = file_open(fname, "rb");
gtk_statusbar_push(GTK_STATUSBAR(info_bar), file_ctx,
" <live capture in progress>");