diff --git a/src/io.cpp b/src/io.cpp index 76ffb12e..5362fc22 100644 --- a/src/io.cpp +++ b/src/io.cpp @@ -10,7 +10,7 @@ namespace Mist { //Open the page for the metadata char pageName[NAME_BUFFER_SIZE]; snprintf(pageName, NAME_BUFFER_SIZE, SHM_STREAM_INDEX, streamName.c_str()); - metaPages[0].init(pageName, DEFAULT_META_PAGE_SIZE, true); + metaPages[0].init(pageName, myMeta.getSendLen(), true); //Make sure we don't delete it on accident metaPages[0].master = false;