aboutsummaryrefslogtreecommitdiff
path: root/src/util/syserror.cpp
diff options
context:
space:
mode:
authorlaanwj <126646+laanwj@users.noreply.github.com>2022-04-21 18:39:56 +0200
committerlaanwj <126646+laanwj@users.noreply.github.com>2022-04-28 10:24:06 +0200
commitf00fb1265a8bc26e1612c771173325dbe49b3612 (patch)
treee8b7264f9bed7fd281dc281e73a112905f52d2ef /src/util/syserror.cpp
parent718da302c7b11b375042c3000d421fd93348c199 (diff)
util: Increase buffer size to 1024 in SysErrorString
Increase the error message buffer to 1024 as recommended in the manual page (Thanks Jon Atack)
Diffstat (limited to 'src/util/syserror.cpp')
-rw-r--r--src/util/syserror.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/syserror.cpp b/src/util/syserror.cpp
index d721602bbb..391ddd3560 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;