aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil/mpeg-audio.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-06-29 18:04:59 -0700
committerGuy Harris <guy@alum.mit.edu>2015-06-30 02:34:54 +0000
commit63a78d45bce99d9c0147d8b9c0bd0f81badc3f5f (patch)
treeb26b7f4d0ff5b1cfd51da639334b44fbbed2a19e /wsutil/mpeg-audio.c
parent1e511d830eac041815db3287934b6b84370b8f16 (diff)
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 'wsutil/mpeg-audio.c')
0 files changed, 0 insertions, 0 deletions