Commit read-only stack security fix for 64bit processors.
[ardour.git] / libs / ardour / vst_plugin.cc
index 02003a4238ac969b04d930e2b8beedc59582cfba..800c5a98561f84d141f4f6f492b8ecd8789457c2 100644 (file)
@@ -244,12 +244,12 @@ VSTPlugin::set_state(const XMLNode& node)
 
                for (i = child->properties().begin(); i != child->properties().end(); ++i) {
                        long param;
-                       double val;
+                       float val;
 
                        sscanf ((*i)->name().c_str(), "param_%ld", &param);
-                       sscanf ((*i)->value().c_str(), "%g", &val);
+                       sscanf ((*i)->value().c_str(), "%f", &val);
 
-                       _plugin->setParameter (_plugin, param, (float) val);
+                       _plugin->setParameter (_plugin, param, val);
                }
 
                return 0;