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:
1 parent
718da302c7
commit
f00fb1265a
1 file changed
+1
-1
@@ -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;
|
||||||
|
|||||||
Reference in new issue
Block a user