Browse Source

Fix OSC handling method check for long strings

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.2.0-RC1
falkTX 4 years ago
parent
commit
f58fe233c1
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      source/backend/engine/CarlaEngineOscHandlers.cpp

+ 3
- 3
source/backend/engine/CarlaEngineOscHandlers.cpp View File

@@ -131,9 +131,9 @@ int CarlaEngineOsc::handleMessage(const bool isTCP, const char* const path, cons
}

// Get method from path, "/Carla/i/method" -> "method"
char method[32+1];
method[32] = '\0';
std::strncpy(method, path + (nameSize + offset), 32);
char method[48];
std::strncpy(method, path + (nameSize + offset), 47);
method[47] = '\0';

if (method[0] == '\0')
{


Loading…
Cancel
Save