aboutsummaryrefslogtreecommitdiff
path: root/ccan/list/test/run-check-corrupt.c
diff options
context:
space:
mode:
Diffstat (limited to 'ccan/list/test/run-check-corrupt.c')
-rw-r--r--ccan/list/test/run-check-corrupt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ccan/list/test/run-check-corrupt.c b/ccan/list/test/run-check-corrupt.c
index 5dd9f9c..f4c20b5 100644
--- a/ccan/list/test/run-check-corrupt.c
+++ b/ccan/list/test/run-check-corrupt.c
@@ -17,7 +17,7 @@ static int my_fprintf(FILE *stream, const char *format, ...)
va_list ap;
int ret;
va_start(ap, format);
- ret = vsprintf(printf_buffer, format, ap);
+ ret = vsnprintf(printf_buffer, sizeof(printf_buffer), format, ap);
va_end(ap);
return ret;
}