From 9b7c0c1429c73af669c3cda8b048a5e77f3138f4 Mon Sep 17 00:00:00 2001 From: 8nlight <8nlight@disroot.org> Date: Thu, 19 Oct 2023 00:19:04 +0300 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B=20=D0=B2=20=C2=AB?= =?UTF-8?q?/=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fetch.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fetch.c b/fetch.c index 5034f39..2b001d8 100644 --- a/fetch.c +++ b/fetch.c @@ -1,9 +1,9 @@ #include #include "funcs.h" +#include "config.h" int main(void) { Init(); - void (*FUNCS[])(void) = {PrintOs, GetAvg, GetKernel, GetShell, GetUptime, GetUser, GetPkgs, GetArch, Blank, PrintColors}; size_t i; for (i = 0; i < sizeof(FUNCS) / sizeof(void *); i++) { @@ -21,8 +21,8 @@ int main(void) { //If art is larger than buffer size - for (size_t j = i; j < Logo.size; j++) - printf("%s\n", Logo.art[j]); + for (; i < Logo.size; i++) + printf("%s\n", Logo.art[i]); //Clean and close printf("\n\033[0m");