summaryrefslogtreecommitdiff
path: root/src/common/libtap/tap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/libtap/tap.c')
-rw-r--r--src/common/libtap/tap.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/common/libtap/tap.c b/src/common/libtap/tap.c
index d6bb995..e89948b 100644
--- a/src/common/libtap/tap.c
+++ b/src/common/libtap/tap.c
@@ -9,6 +9,7 @@ This file is licensed under the GPL v3
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
+#include "common.h"
#include "tap.h"
static int expected_tests = NO_PLAN;
@@ -26,7 +27,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;
}
@@ -226,6 +227,7 @@ exit_status () {
int
bail_out (int ignore, const char *fmt, ...) {
+ UNUSED(ignore);
va_list args;
va_start(args, fmt);
printf("Bail out! ");
@@ -252,6 +254,7 @@ skippy (int n, const char *fmt, ...) {
void
ctodo (int ignore, const char *fmt, ...) {
+ UNUSED(ignore);
va_list args;
va_start(args, fmt);
todo_mesg = vstrdupf(fmt, args);
@@ -322,4 +325,3 @@ like_at_loc (int for_match, const char *file, int line, const char *got,
return test;
}
#endif
-