Skip to content
Snippets Groups Projects
Commit 851993b7 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

gen_param: replace vsprintf by vsnprintf

parent 833880ce
No related branches found
No related tags found
1 merge request!159M214003/develop
Pipeline #50125 passed
......@@ -53,12 +53,13 @@ check_xyvals(size_t nvals, double *xvals, double *yvals)
static std::string
gen_param(const char *fmt, ...)
{
va_list args;
char str[256];
constexpr size_t len = 256;
char str[len];
va_list args;
va_start(args, fmt);
vsprintf(str, fmt, args);
vsnprintf(str, len, fmt, args);
va_end(args);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment