From debc5a7c058fff44c5efea495d52bb3b313c247b Mon Sep 17 00:00:00 2001 From: TheDarkBug <41623496+TheDarkBug@users.noreply.github.com> Date: Thu, 14 Oct 2021 22:39:29 +0200 Subject: [PATCH] Fixed reading "TRUE" or "true" in cache env variable --- uwufetch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uwufetch.c b/uwufetch.c index 4014b3b..c38eed9 100644 --- a/uwufetch.c +++ b/uwufetch.c @@ -128,7 +128,7 @@ int main(int argc, char *argv[]) int cache_enabled = 0; char buffer[128]; - sscanf(cache_env, "%1[TRUEtrue1]", buffer); + sscanf(cache_env, "%4[TRUEtrue1]", buffer); cache_enabled = (strcmp(buffer, "true") == 0 || strcmp(buffer, "TRUE") == 0 || strcmp(buffer, "1") == 0); if (cache_enabled) {