Browse Source

Correct the offset used in the custom data restore fix

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.4.2
falkTX 3 years ago
parent
commit
c397f32066
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      source/utils/CarlaStateUtils.cpp

+ 1
- 1
source/utils/CarlaStateUtils.cpp View File

@@ -522,7 +522,7 @@ bool CarlaStateSave::fillFromXmlElement(const XmlElement* const xmlElement)
if (std::strcmp(stateCustomData->type, CUSTOM_DATA_TYPE_CHUNK) == 0 || len >= 128+6)
{
CARLA_SAFE_ASSERT_CONTINUE(len >= 6);
cText = cText.substring(1, len - 6);
cText = cText.substring(1, len - 5);
}

stateCustomData->value = xmlSafeStringCharDup(cText, false);


Loading…
Cancel
Save