mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-26 04:17:33 +00:00
Fix string dest length.
This commit is contained in:
parent
acfb4116b3
commit
61e8550615
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user