diff options
author | laanwj <126646+laanwj@users.noreply.github.com> | 2022-04-21 18:39:56 +0200 |
---|---|---|
committer | laanwj <126646+laanwj@users.noreply.github.com> | 2022-04-28 10:24:06 +0200 |
commit | f00fb1265a8bc26e1612c771173325dbe49b3612 (patch) | |
tree | e8b7264f9bed7fd281dc281e73a112905f52d2ef | |
parent | 718da302c7b11b375042c3000d421fd93348c199 (diff) | |
download | bitcoin-f00fb1265a8bc26e1612c771173325dbe49b3612.tar.xz |
util: Increase buffer size to 1024 in SysErrorString
Increase the error message buffer to 1024 as recommended in the manual
page (Thanks Jon Atack)
-rw-r--r-- | src/util/syserror.cpp | 2 |
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; |