Skip to content
Snippets Groups Projects
Commit a6c3711b authored by Daniel Salzman's avatar Daniel Salzman
Browse files

tap: fix OpenBSD warning (deprecated vsprintf)

parent 4a177092
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@ vstrdupf (const char *fmt, va_list args) {
fmt = "";
size = vsnprintf(NULL, 0, fmt, args2) + 2;
str = malloc(size);
vsprintf(str, fmt, args);
vsnprintf(str, size, fmt, args);
va_end(args2);
return str;
}
......
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