Skip to content

Commit f00fb12

Browse files
committed
util: Increase buffer size to 1024 in SysErrorString
Increase the error message buffer to 1024 as recommended in the manual page (Thanks Jon Atack)
1 parent 718da30 commit f00fb12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/syserror.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
std::string SysErrorString(int err)
1515
{
16-
char buf[256];
16+
char buf[1024];
1717
/* Too bad there are three incompatible implementations of the
1818
* thread-safe strerror. */
1919
const char *s = nullptr;

0 commit comments

Comments
 (0)