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");