mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-06-02 15:32:34 +02:00
util: Increase buffer size to 1024 in SysErrorString
Increase the error message buffer to 1024 as recommended in the manual page (Thanks Jon Atack)
This commit is contained in:
parent
718da302c7
commit
f00fb1265a
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
std::string SysErrorString(int err)
|
std::string SysErrorString(int err)
|
||||||
{
|
{
|
||||||
char buf[256];
|
char buf[1024];
|
||||||
/* Too bad there are three incompatible implementations of the
|
/* Too bad there are three incompatible implementations of the
|
||||||
* thread-safe strerror. */
|
* thread-safe strerror. */
|
||||||
const char *s = nullptr;
|
const char *s = nullptr;
|
||||||
|
Loading…
Reference in New Issue
Block a user