aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2011-04-10 18:55:06 +0000
committerGuy Harris <guy@alum.mit.edu>2011-04-10 18:55:06 +0000
commit71d4caa5b92bbf9ce36583f3535a13980dcf17bc (patch)
tree842f0ca863af080e61c3435bee2a026f9f09b86f /wiretap
parent332e0263edab6ec314089e9a14a25becbe78b064 (diff)
downloadwireshark-71d4caa5b92bbf9ce36583f3535a13980dcf17bc.tar.gz
wireshark-71d4caa5b92bbf9ce36583f3535a13980dcf17bc.tar.bz2
wireshark-71d4caa5b92bbf9ce36583f3535a13980dcf17bc.zip
Add ws_fstat64(), defined to be fstat on UN*X and _fstati64 on Windows.
Use it in some places where we're getting the file size. svn path=/trunk/; revision=36544
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/wtap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/wtap.c b/wiretap/wtap.c
index 30c71810e2..861628a60c 100644
--- a/wiretap/wtap.c
+++ b/wiretap/wtap.c
@@ -54,7 +54,7 @@ wtap_file_size(wtap *wth, int *err)
{
struct stat statb;
- if (fstat(wth->fd, &statb) == -1) {
+ if (ws_fstat64(wth->fd, &statb) == -1) {
if (err != NULL)
*err = errno;
return -1;