packet_pad: zero all the buffers

This commit is contained in:
Bastian Bloessl
2014-07-31 12:19:12 +02:00
parent 0e17e91493
commit 66719c9453
+1 -1
View File
@@ -52,7 +52,7 @@ int work (int noutput_items, gr_vector_int& ninput_items,
const gr_complex *in = (const gr_complex*)input_items[0];
gr_complex *out = (gr_complex*)output_items[0];
std::memset(out, 0x00, sizeof(gr_complex) * ninput_items[0] + d_pad_front + d_pad_tail);
std::memset(out, 0x00, sizeof(gr_complex) * (ninput_items[0] + d_pad_front + d_pad_tail));
std::memcpy(out + d_pad_front, in, sizeof(gr_complex) * ninput_items[0]);