1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-09-29 21:49:07 +00:00

use get_result_copy() instead of get_result()

i don't seem to follow my own advice :/
This commit is contained in:
Pavel Labath 2011-01-02 16:23:46 +01:00
parent b0deb283ec
commit 10d7605a51

View File

@ -178,7 +178,7 @@ void ccurl_process_info(char *p, int p_max_size, const std::string &uri, int int
uint32_t period = std::max(std::lround(interval/active_update_interval()), 1l);
auto cb = conky::register_cb<simple_curl_cb>(period, uri);
strncpy(p, cb->get_result().c_str(), p_max_size);
strncpy(p, cb->get_result_copy().c_str(), p_max_size);
}
void curl_parse_arg(struct text_object *obj, const char *arg)