[SCM] calf/master: + LADSPA: fix LRDF generation for non-English locales (see? I had this bug too!)
js at users.alioth.debian.org
js at users.alioth.debian.org
Tue May 7 15:38:44 UTC 2013
The following commit has been merged in the master branch:
commit 090ddcbaf1d699bcfc686099c5ac3929abb76267
Author: Krzysztof Foltman <wdev at foltman.com>
Date: Mon Dec 8 19:34:06 2008 +0000
+ LADSPA: fix LRDF generation for non-English locales (see? I had this bug too!)
diff --git a/src/utils.cpp b/src/utils.cpp
index bd48553..6a189c9 100644
--- a/src/utils.cpp
+++ b/src/utils.cpp
@@ -22,6 +22,7 @@
#include <config.h>
#include <calf/osctl.h>
#include <calf/utils.h>
+#include <sstream>
using namespace std;
using namespace osctl;
@@ -97,9 +98,9 @@ std::string i2s(int value)
std::string f2s(double value)
{
// XXXKF might not work with some locale settings
- char buf[64];
- sprintf(buf, "%g", value);
- return buf;
+ stringstream ss;
+ ss << value;
+ return ss.str();
}
}
--
calf audio plugins packaging
More information about the pkg-multimedia-commits
mailing list