Browse Source

jsfx: null-terminate the parsing buffer

pull/1516/head
Jean Pierre Cimalando 3 years ago
parent
commit
6120ac968e
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      source/modules/jsusfx/source/jsusfx.cpp

+ 1
- 0
source/modules/jsusfx/source/jsusfx.cpp View File

@@ -314,6 +314,7 @@ static const char *nextToken(const char *text) {
bool JsusFx_Slider::config(JsusFx &fx, const int index, const char *param, const int lnumber) {
char buffer[2048];
strncpy(buffer, param, 2048);
buffer[sizeof(buffer)-1] = '\0';
def = min = max = inc = 0;
exists = false;


Loading…
Cancel
Save