From f00fb1265a8bc26e1612c771173325dbe49b3612 Mon Sep 17 00:00:00 2001 From: laanwj <126646+laanwj@users.noreply.github.com> Date: Thu, 21 Apr 2022 18:39:56 +0200 Subject: [PATCH] util: Increase buffer size to 1024 in SysErrorString Increase the error message buffer to 1024 as recommended in the manual page (Thanks Jon Atack) --- src/util/syserror.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/syserror.cpp b/src/util/syserror.cpp index d721602bbbd..391ddd35602 100644 --- a/src/util/syserror.cpp +++ b/src/util/syserror.cpp @@ -13,7 +13,7 @@ std::string SysErrorString(int err) { - char buf[256]; + char buf[1024]; /* Too bad there are three incompatible implementations of the * thread-safe strerror. */ const char *s = nullptr;