diff --git a/src/config.c b/src/config.c index 80dc189..093e76d 100644 --- a/src/config.c +++ b/src/config.c @@ -85,7 +85,7 @@ char *colrep(const char *str, const char *old, const char *new) { i = 0; while (*str) { if (strstr(str, old) == str) { - strncpy(&res[i], new, strlen(new)); + memcpy(&res[i], new, strlen(new)); i += nlen; str += olen; } else { diff --git a/src/logo/linux.c b/src/logo/linux.c index d9944d0..ce205a4 100644 --- a/src/logo/linux.c +++ b/src/logo/linux.c @@ -37,13 +37,6 @@ void getDistro(const char *distroname) { } } - if (!isbiglogo && !issmalllogo) { - for (int i = 0; i < LOGO_SIZE; i++) { - LOGO[i] = NULL; - LOGO_SMALL[i] = NULL; - } - } - if (strncmp((char *)logoname, "alpine", strlen("alpine")) == 0) { if (!customcolor) color = MAGENTA; else color = customcolor;