Fixed #39 with gpu_name max length.

This commit is contained in:
TheDarkBug 2021-03-16 15:26:25 +01:00
parent fbc9b49c90
commit 117dfe96dd

View file

@ -205,6 +205,9 @@ void get_info() { // get all necessary info
while (fgets(line, sizeof(line), gpu)) if (sscanf(line, "%[^\n]", gpu_model)) break;
}
fclose(gpu);
for (int i = 42; i < 256; i++) { //max gpu_name length
gpu_model[i] = '\0';
}
pkgs = pkgman();
}