Fixed #39 with gpu_name max length.
This commit is contained in:
parent
fbc9b49c90
commit
117dfe96dd
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue