1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-27 04:32:55 +00:00

Bugfix: segfault in curl-related code

This commit is contained in:
Nikolas Garofil 2010-04-22 16:35:00 +02:00
parent 52ec22c30a
commit 3b427bf004

View File

@ -185,7 +185,7 @@ void ccurl_free_info(void)
/* straight copy, used by $curl */
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 */