mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-15 19:56:55 +00:00
Bugfix: segfault in curl-related code
This commit is contained in:
parent
52ec22c30a
commit
3b427bf004
@ -185,7 +185,7 @@ void ccurl_free_info(void)
|
|||||||
/* straight copy, used by $curl */
|
/* straight copy, used by $curl */
|
||||||
static void ccurl_parse_data(char *result, const char *data)
|
static void ccurl_parse_data(char *result, const char *data)
|
||||||
{
|
{
|
||||||
strncpy(result, data, max_user_text);
|
if(result) strncpy(result, data, max_user_text);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* prints result data to text buffer, used by $curl */
|
/* prints result data to text buffer, used by $curl */
|
||||||
|
Loading…
Reference in New Issue
Block a user