summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2018-08-26 15:48:44 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2018-08-26 15:48:44 +0100
commit70fd5be7d923c3cb127259647a5dbd37932023c1 (patch)
treefd0acb4c646c7bff3b783f2d87af428606ebe7f2
parent935be21bfb31ed55ec52664a59f13c21829ae024 (diff)
downloadlibnslog-70fd5be7d923c3cb127259647a5dbd37932023c1.tar.gz
libnslog-70fd5be7d923c3cb127259647a5dbd37932023c1.tar.bz2
Another thing to shush openbsd
-rw-r--r--src/core.c2
1 files changed, 1 insertions, 1 deletions
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 {