aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/file_access.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-07-20 15:20:40 -0700
committerGuy Harris <guy@alum.mit.edu>2018-07-20 23:13:08 +0000
commit5d8a5fb8665fae4b4162df2b9cfda04751364a36 (patch)
treeb405ed8dd4329fabfa854341c95ddd82ae4e040c /wiretap/file_access.c
parentffbd3151b533800ec3c637007a430a93554bc471 (diff)
If we have fseek/ftell variants with 64-bit offsets, use them.
Or, at least, use them in the libwiretap file-writing code; we can change other places to use them as appropriate. Change-Id: I63af2267a22a158ee23f3359b043913dac0e285b Reviewed-on: https://code.wireshark.org/review/28783 Petri-Dish: Guy Harris <guy@alum.mit.edu> Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap/file_access.c')
-rw-r--r--wiretap/file_access.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/file_access.c b/wiretap/file_access.c
index 5de6744e3a..4cc15b3d94 100644
--- a/wiretap/file_access.c
+++ b/wiretap/file_access.c
@@ -2763,7 +2763,7 @@ wtap_dump_file_seek(wtap_dumper *wdh, gint64 offset, int whence, int *err)
} else
#endif
{
- if (-1 == fseek((FILE *)wdh->fh, (long)offset, whence)) {
+ if (-1 == ws_fseek64((FILE *)wdh->fh, offset, whence)) {
*err = errno;
return -1;
} else
@@ -2784,7 +2784,7 @@ wtap_dump_file_tell(wtap_dumper *wdh, int *err)
} else
#endif
{
- if (-1 == (rval = ftell((FILE *)wdh->fh))) {
+ if (-1 == (rval = ws_ftell64((FILE *)wdh->fh))) {
*err = errno;
return -1;
} else