[Base] Fix vec2str to actually use provided format string

This commit is contained in:
Ray Speth 2016-04-30 16:47:37 -04:00
parent 0e2ea0964b
commit e13faa1071

View file

@ -68,7 +68,7 @@ std::string vec2str(const vector_fp& v, const std::string& fmt,
std::stringstream o;
for (size_t i = 0; i < v.size(); i++) {
SNPRINTF(buf, 63, fmt.c_str(), v[i]);
o << v[i];
o << buf;
if (i != v.size() - 1) {
o << sep;
}