1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-16 01:57:09 +00:00

One more byte for error

This commit is contained in:
Brenden Matthews 2023-11-19 13:53:53 -05:00
parent b9e7fa0574
commit 2fbe79a65c
No known key found for this signature in database
GPG Key ID: 137B7AC2BDFD8DF0

View File

@ -277,9 +277,9 @@ static int x11_error_handler(Display *d, XErrorEvent *err) {
"length", "implementation"};
error_name = const_cast<char *>(NAMES[err->error_code].c_str());
} else {
static char code_name_buffer[4];
static char code_name_buffer[5];
error_name = reinterpret_cast<char *>(&code_name_buffer);
snprintf(error_name, 3, "%d", err->error_code);
snprintf(error_name, 4, "%d", err->error_code);
}
}
if (code_description == nullptr) {