diff --git a/config.h b/config.h index 1a999dd..fd0ea6c 100644 --- a/config.h +++ b/config.h @@ -20,8 +20,8 @@ static PARAMETR CONFIG[] = { {" ARCH ", GetArch}, {" SHELL ", GetShell}, {" PKGS ", GetPkg}, - {"", Blank}, - {"", PrintColors} + {" ", Blank}, + {" ", PrintColors} }; #endif diff --git a/src/fetch.c b/src/fetch.c index a284ac2..1cf3a7e 100644 --- a/src/fetch.c +++ b/src/fetch.c @@ -35,7 +35,7 @@ int GetOs(char *os_name, size_t len) { while (fgets(os_name, len, fp)) { if (!strncmp(os_name, "PRETTY_NAME=\"", 5)) { os_name[strlen(os_name) - 2] = '\0'; - snprintf(os_name, len, os_name + strlen("PRETTY_NAME=\"")); + snprintf(os_name, len, "%s", os_name + strlen("PRETTY_NAME=\"")); fclose(fp); return 0;