From 70fd5be7d923c3cb127259647a5dbd37932023c1 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sun, 26 Aug 2018 15:48:44 +0100 Subject: Another thing to shush openbsd --- src/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.c b/src/core.c index 48ea5aa..132e1e6 100644 --- a/src/core.c +++ b/src/core.c @@ -80,7 +80,7 @@ static void nslog__log_corked(nslog_entry_context_t *ctx, return; } newcork->context = *ctx; - vsprintf(newcork->message, fmt, args); + vsnprintf(newcork->message, measured_len + 1, fmt, args); if (nslog__cork_chain == NULL) { nslog__cork_chain = nslog__cork_chain_last = newcork; } else { -- cgit v1.2.3