diff options
author | Jörg Mayer <jmayer@loplof.de> | 2007-05-21 19:43:17 +0000 |
---|---|---|
committer | Jörg Mayer <jmayer@loplof.de> | 2007-05-21 19:43:17 +0000 |
commit | 4a22b30c362d68df3ebd632769cf4823699c3ed2 (patch) | |
tree | 9592f4f56041e1042c0faae7360fb587563f7c19 /epan | |
parent | 33cd736ce71447bf154736d8c13b0bdf5fa2eece (diff) |
put fwrite and fread into DISSECTOR_ASSERT in order to use the result
svn path=/trunk/; revision=21865
Diffstat (limited to 'epan')
-rw-r--r-- | epan/follow.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/follow.c b/epan/follow.c index 5e35045d46..5e819e4cd4 100644 --- a/epan/follow.c +++ b/epan/follow.c @@ -329,7 +329,7 @@ reset_tcp_reassembly() { static void write_packet_data( int index, tcp_stream_chunk *sc, const char *data ) { - fwrite( sc, 1, sizeof(tcp_stream_chunk), data_out_file ); - fwrite( data, 1, sc->dlen, data_out_file ); + 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 )); bytes_written[index] += sc->dlen; } |