Fix a small buffer issue which could sometimes prevent sessions from being able to load
In the function 'LV2Plugin::add_state()' the snprintf() call can easily print 19 or even 20 bytes - so a 16-byte buffer wasn't large enough.
This commit is contained in:
parent
0956708aa9
commit
3c4f899a4f
@ -983,7 +983,7 @@ LV2Plugin::add_state(XMLNode* root) const
|
|||||||
assert(_insert_id != PBD::ID("0"));
|
assert(_insert_id != PBD::ID("0"));
|
||||||
|
|
||||||
XMLNode* child;
|
XMLNode* child;
|
||||||
char buf[16];
|
char buf[32];
|
||||||
LocaleGuard lg(X_("C"));
|
LocaleGuard lg(X_("C"));
|
||||||
|
|
||||||
for (uint32_t i = 0; i < parameter_count(); ++i) {
|
for (uint32_t i = 0; i < parameter_count(); ++i) {
|
||||||
|
Loading…
Reference in New Issue
Block a user