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:
parent
b9e7fa0574
commit
2fbe79a65c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user