aboutsummaryrefslogtreecommitdiffstats
path: root/epan/follow.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/follow.c')
-rw-r--r--epan/follow.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/epan/follow.c b/epan/follow.c
index 749d039600..953e07fe56 100644
--- a/epan/follow.c
+++ b/epan/follow.c
@@ -424,8 +424,14 @@ reset_tcp_reassembly(void)
static void
write_packet_data( int index, tcp_stream_chunk *sc, const char *data )
{
- DISSECTOR_ASSERT(1 * sizeof(tcp_stream_chunk) == fwrite( sc, 1, sizeof(tcp_stream_chunk), data_out_file ));
- DISSECTOR_ASSERT(1 * sc->dlen == fwrite( data, 1, sc->dlen, data_out_file ));
+ size_t ret;
+
+ ret = fwrite( sc, 1, sizeof(tcp_stream_chunk), data_out_file );
+ DISSECTOR_ASSERT(sizeof(tcp_stream_chunk) == ret);
+
+ ret = fwrite( data, 1, sc->dlen, data_out_file );
+ DISSECTOR_ASSERT(sc->dlen == ret);
+
bytes_written[index] += sc->dlen;
empty_tcp_stream = FALSE;
}