From 9f10db393ed8d400ca4b14557d35fccdbbc34059 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Wed, 15 Aug 2018 17:58:19 +0200 Subject: mthread: avoid truncating internal buffer --- mthread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mthread.c') diff --git a/mthread.c b/mthread.c index f768cad..cb59a99 100644 --- a/mthread.c +++ b/mthread.c @@ -64,7 +64,7 @@ mid(struct message *msg) } else { // invent new message-id for internal tracking static long i; - char buf[32]; + char buf[40]; snprintf(buf, sizeof buf, "thread%08ld@localhost", ++i); return strdup(buf); } -- cgit 1.4.1