From d3a3d69d7ec478e059ead85b5cc50255a7648488 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Thu, 10 Dec 2015 11:36:08 -0800 Subject: [PATCH] ...better safe than sorry --- template/vst.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/template/vst.cpp b/template/vst.cpp index 7f25787..4782707 100644 --- a/template/vst.cpp +++ b/template/vst.cpp @@ -191,7 +191,7 @@ plugin::getParameterDisplay(VstInt32 index, char *text) if (index >= CrapPlug::parameters) return; Param *p = ¶ms[index]; - char display[MAX_PARAM_LEN]; + char display[MAX_PARAM_LEN + 1]; switch (p->scale) { case SCALE_FLOAT: @@ -219,7 +219,7 @@ plugin::getParameterLabel(VstInt32 index, char *text) if (index >= CrapPlug::parameters) return; Param *p = ¶ms[index]; - char display[MAX_PARAM_LEN]; + char display[MAX_PARAM_LEN + 1]; switch (p->scale) { case SCALE_HZ: