diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-12-21 04:52:15 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-12-21 04:52:15 +0000 |
commit | 14d5511143598633e689b718d4e4aa91913e6dfd (patch) | |
tree | 6636ca6b07b3a745890a8b8e8ecb87e0fab4d8c8 /wiretap/file_wrappers.c | |
parent | 2ae8b65a396b21bcb28e24c67e0349a44c43bca9 (diff) |
Squelch a warning - the code shouldn't ever let "have" get so large that
it exceeds size_t on any platform, including Win64.
svn path=/trunk/; revision=46652
Diffstat (limited to 'wiretap/file_wrappers.c')
-rw-r--r-- | wiretap/file_wrappers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/file_wrappers.c b/wiretap/file_wrappers.c index 8a54c051a4..0489466cc5 100644 --- a/wiretap/file_wrappers.c +++ b/wiretap/file_wrappers.c @@ -1494,7 +1494,7 @@ gz_comp(GZWFILE_T state, int flush) (flush != Z_FINISH || ret == Z_STREAM_END))) { have = strm->next_out - state->next; if (have) { - got = write(state->fd, state->next, have); + got = write(state->fd, state->next, (size_t)have); if (got < 0) { state->err = errno; return -1; |