mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-15 17:47:09 +00:00
Use text_buffer_size in print_evaluate for the buffer size (#260)
This commit is contained in:
parent
e056dca8f1
commit
8696c504c6
@ -556,7 +556,7 @@ void print_cached(struct text_object *obj, char *p, int p_max_size)
|
||||
|
||||
void print_evaluate(struct text_object *obj, char *p, int p_max_size)
|
||||
{
|
||||
std::vector<char> buf(max_user_text.get(*state));
|
||||
std::vector<char> buf(text_buffer_size.get(*state));
|
||||
evaluate(obj->data.s, &buf[0], buf.size());
|
||||
evaluate(&buf[0], p, p_max_size);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user