From b75d33b2757e3e8fc5e0d9ce788c4b2bf76115c5 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 26 Nov 2023 13:54:14 +0300 Subject: [PATCH] fix --- config.h | 4 ++-- src/fetch.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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;