From b781ad0a911e042a06efa5881bd9c3b8e789edcc Mon Sep 17 00:00:00 2001 From: Nicholas Corgan Date: Mon, 18 Feb 2013 12:25:35 -0800 Subject: core: fixed gr_random_pdu MSVC incompatibility issue --- gnuradio-core/src/lib/general/gr_random_pdu.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gnuradio-core/src/lib/general/gr_random_pdu.cc b/gnuradio-core/src/lib/general/gr_random_pdu.cc index 9f692c72b..6d8c13614 100644 --- a/gnuradio-core/src/lib/general/gr_random_pdu.cc +++ b/gnuradio-core/src/lib/general/gr_random_pdu.cc @@ -34,6 +34,7 @@ #include #include #include +#include // public constructor that returns a shared_ptr @@ -68,13 +69,13 @@ void gr_random_pdu::output_random(){ int len = rvar(); // fill it with random bytes - unsigned char vec[len]; + std::vector vec; for(int i=0; i