Fixed *file array size for package managers.
This commit is contained in:
parent
38899245e5
commit
ae2fcf8799
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue