diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-06-29 18:04:59 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-06-30 02:34:54 +0000 |
commit | 63a78d45bce99d9c0147d8b9c0bd0f81badc3f5f (patch) | |
tree | b26b7f4d0ff5b1cfd51da639334b44fbbed2a19e /CMakeListsCustom.txt.example | |
parent | 1e511d830eac041815db3287934b6b84370b8f16 (diff) | |
download | wireshark-63a78d45bce99d9c0147d8b9c0bd0f81badc3f5f.tar.gz wireshark-63a78d45bce99d9c0147d8b9c0bd0f81badc3f5f.tar.bz2 wireshark-63a78d45bce99d9c0147d8b9c0bd0f81badc3f5f.zip |
Use ws_fstat64() to determine the size of an open file.
fseek() to the end, followed by ftell(), is a bit of an odd way to get
the file size. Use ws_fstat64() instead.
Check that the file is a regular file, while we're at it. This means we
don't have to check before opening.
Bug: 11268
Change-Id: I31ee20dd5568d10541375cf97b286abfc1384d1c
Reviewed-on: https://code.wireshark.org/review/9230
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'CMakeListsCustom.txt.example')
0 files changed, 0 insertions, 0 deletions