From ae2fcf8799404f222730b2d6b879fb59097f12e1 Mon Sep 17 00:00:00 2001 From: TheDarkBug Date: Sat, 13 Mar 2021 08:12:05 +0100 Subject: [PATCH] Fixed *file array size for package managers. --- uwufetch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uwufetch.c b/uwufetch.c index 5096458..3061e6f 100644 --- a/uwufetch.c +++ b/uwufetch.c @@ -85,7 +85,7 @@ int main(int argc, char *argv[]) { int pkgman() { // this is just a function that returns the total of installed packages int apt, apk, dnf, emerge, flatpak, nix, pacman, rpm, xbps, total = 0; - FILE *file[8]; + FILE *file[9]; file[0] = popen("dpkg-query -f '${binary:Package}\n' -W 2> /dev/null | wc -l", "r"); file[1] = popen("apk info 2> /dev/null | wc -l", "r"); file[2] = popen("dnf list installed 2> /dev/null | wc -l", "r");