diff options
author | Tom Rondeau | 2011-09-09 16:34:11 -0400 |
---|---|---|
committer | Tom Rondeau | 2011-09-09 16:34:11 -0400 |
commit | 2c0a3dc882306e772ede8a69925c23227bfcaf96 (patch) | |
tree | 4208c7b7c0305dabf3075a4bd612eb6a1f6a757d /gnuradio-core | |
parent | ce84e42e13163f5cd3a045bee21165aed37ef932 (diff) | |
download | gnuradio-2c0a3dc882306e772ede8a69925c23227bfcaf96.tar.gz gnuradio-2c0a3dc882306e772ede8a69925c23227bfcaf96.tar.bz2 gnuradio-2c0a3dc882306e772ede8a69925c23227bfcaf96.zip |
tags: fixed fwrite line for the right item size number.
Diffstat (limited to 'gnuradio-core')
-rw-r--r-- | gnuradio-core/src/lib/io/gr_tagged_file_sink.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gnuradio-core/src/lib/io/gr_tagged_file_sink.cc b/gnuradio-core/src/lib/io/gr_tagged_file_sink.cc index 91618bad6..67184b9c5 100644 --- a/gnuradio-core/src/lib/io/gr_tagged_file_sink.cc +++ b/gnuradio-core/src/lib/io/gr_tagged_file_sink.cc @@ -183,7 +183,8 @@ gr_tagged_file_sink::work (int noutput_items, //std::cout << "Found end of burst: " // << idx_stop << ", " << N << std::endl; - int count = fwrite (&inbuf[d_itemsize*idx], d_itemsize, idx_stop-idx, d_handle); + int count = fwrite (&inbuf[d_itemsize*idx], d_itemsize, + idx_stop-idx, d_handle); if (count == 0) { if(ferror(d_handle)) { perror("gr_tagged_file_sink: error writing file"); @@ -200,7 +201,8 @@ gr_tagged_file_sink::work (int noutput_items, } } if(d_state == IN_BURST) { - int count = fwrite (&inbuf[idx], d_itemsize, noutput_items-idx, d_handle); + int count = fwrite (&inbuf[d_itemsize*idx], d_itemsize, + noutput_items-idx, d_handle); if (count == 0) { if(ferror(d_handle)) { perror("gr_tagged_file_sink: error writing file"); |