...better safe than sorry
This commit is contained in:
parent
4199bfa7dc
commit
d3a3d69d7e
1 changed files with 2 additions and 2 deletions
|
@ -191,7 +191,7 @@ plugin::getParameterDisplay(VstInt32 index, char *text)
|
||||||
if (index >= CrapPlug::parameters) return;
|
if (index >= CrapPlug::parameters) return;
|
||||||
|
|
||||||
Param *p = ¶ms[index];
|
Param *p = ¶ms[index];
|
||||||
char display[MAX_PARAM_LEN];
|
char display[MAX_PARAM_LEN + 1];
|
||||||
|
|
||||||
switch (p->scale) {
|
switch (p->scale) {
|
||||||
case SCALE_FLOAT:
|
case SCALE_FLOAT:
|
||||||
|
@ -219,7 +219,7 @@ plugin::getParameterLabel(VstInt32 index, char *text)
|
||||||
if (index >= CrapPlug::parameters) return;
|
if (index >= CrapPlug::parameters) return;
|
||||||
|
|
||||||
Param *p = ¶ms[index];
|
Param *p = ¶ms[index];
|
||||||
char display[MAX_PARAM_LEN];
|
char display[MAX_PARAM_LEN + 1];
|
||||||
|
|
||||||
switch (p->scale) {
|
switch (p->scale) {
|
||||||
case SCALE_HZ:
|
case SCALE_HZ:
|
||||||
|
|
Loading…
Add table
Reference in a new issue