1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-25 12:10:03 +00:00

Fix string dest length.

This commit is contained in:
Brenden Matthews 2022-12-27 08:50:21 -05:00 committed by Brenden Matthews
parent acfb4116b3
commit 61e8550615

View File

@ -352,7 +352,7 @@ void stock_parse_arg(struct text_object *obj, const char *arg) {
data); data);
return; return;
} }
#define MAX_FINYAH_URL_LENGTH 64 #define MAX_FINYAH_URL_LENGTH 75
obj->data.s = static_cast<char *>(malloc(MAX_FINYAH_URL_LENGTH)); obj->data.s = static_cast<char *>(malloc(MAX_FINYAH_URL_LENGTH));
snprintf(obj->data.s, MAX_FINYAH_URL_LENGTH, snprintf(obj->data.s, MAX_FINYAH_URL_LENGTH,
"http://download.finance.yahoo.com/d/quotes.csv?s=%s&f=%s", stock, "http://download.finance.yahoo.com/d/quotes.csv?s=%s&f=%s", stock,