From 61e8550615a099973bf2dd5e96770aef63470187 Mon Sep 17 00:00:00 2001 From: Brenden Matthews Date: Tue, 27 Dec 2022 08:50:21 -0500 Subject: [PATCH] Fix string dest length. --- src/core.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.cc b/src/core.cc index e88ed605..e681eede 100644 --- a/src/core.cc +++ b/src/core.cc @@ -352,7 +352,7 @@ void stock_parse_arg(struct text_object *obj, const char *arg) { data); return; } -#define MAX_FINYAH_URL_LENGTH 64 +#define MAX_FINYAH_URL_LENGTH 75 obj->data.s = static_cast(malloc(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,