diff options
author | John Emmas <johne53@tiscali.co.uk> | 2015-10-22 16:35:13 +0100 |
---|---|---|
committer | John Emmas <johne53@tiscali.co.uk> | 2015-10-22 16:37:00 +0100 |
commit | 3c4f899a4faf0c45938fb17b3d74369352885e08 (patch) | |
tree | b19b3efc3983b318e3e7aea9b329676e0b6e4bf2 /libs/ardour | |
parent | 0956708aa957fd7703fc571ce4247f7c28c2ef3f (diff) |
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.
Diffstat (limited to 'libs/ardour')
-rw-r--r-- | libs/ardour/lv2_plugin.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc index 6867646bf5..7e4328ae41 100644 --- a/libs/ardour/lv2_plugin.cc +++ b/libs/ardour/lv2_plugin.cc @@ -983,7 +983,7 @@ LV2Plugin::add_state(XMLNode* root) const assert(_insert_id != PBD::ID("0")); XMLNode* child; - char buf[16]; + char buf[32]; LocaleGuard lg(X_("C")); for (uint32_t i = 0; i < parameter_count(); ++i) { |