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:
laanwj 2022-04-21 18:39:56 +02:00
parent 718da302c7
commit f00fb1265a

View file

@ -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;