use vsnprintf instead of snprintf in string_printf function

Also, revert to old location: Utils.hpp and utils.cpp
This commit is contained in:
tamasmeszaros 2020-02-03 11:18:33 +01:00
parent f09bed32b6
commit 0c4797e92e
4 changed files with 24 additions and 18 deletions

View file

@ -93,6 +93,8 @@ namespace PerlUtils {
extern std::string path_to_parent_path(const char *src);
};
std::string string_printf(const char *format, ...);
// Standard "generated by Slic3r version xxx timestamp xxx" header string,
// to be placed at the top of Slic3r generated files.
std::string header_slic3r_generated();