summaryrefslogtreecommitdiff
path: root/src/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.c')
-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 {