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

Use text_buffer_size in print_evaluate for the buffer size (#260)

This commit is contained in:
Michal Rus 2016-05-20 17:43:17 +02:00 committed by Brenden Matthews
parent e056dca8f1
commit 8696c504c6

View File

@ -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);
}