summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/lib/vmcircbuf.cc
diff options
context:
space:
mode:
authorJiří Pinkava <j-pi@seznam.cz>2015-03-12 11:23:16 +0100
committerJohnathan Corgan <johnathan@corganlabs.com>2015-03-22 08:00:16 -0700
commitf042e44d18c481e7e2ca37895afbd6ecf42061a3 (patch)
treeb4bb46ef4613109ab700b5960769e115d24b4aee /gnuradio-runtime/lib/vmcircbuf.cc
parent1e573fa391122fa00470df07790f1f1e5f73f700 (diff)
runtime: do not return buffer created on stact #722
Diffstat (limited to 'gnuradio-runtime/lib/vmcircbuf.cc')
-rw-r--r--gnuradio-runtime/lib/vmcircbuf.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/gnuradio-runtime/lib/vmcircbuf.cc b/gnuradio-runtime/lib/vmcircbuf.cc
index d17ed72c43..05f08ceed4 100644
--- a/gnuradio-runtime/lib/vmcircbuf.cc
+++ b/gnuradio-runtime/lib/vmcircbuf.cc
@@ -68,9 +68,8 @@ namespace gr {
std::vector<gr::vmcircbuf_factory *> all = all_factories ();
- const char *name = gr::vmcircbuf_prefs::get(FACTORY_PREF_KEY);
-
- if(name) {
+ char name[1024];
+ if (gr::vmcircbuf_prefs::get(FACTORY_PREF_KEY, name, sizeof(name)) >= 0) {
for(unsigned int i = 0; i < all.size (); i++) {
if(strncmp(name, all[i]->name(), strlen(all[i]->name())) == 0) {
s_default_factory = all[i];