libtasn1: update to 4.20.0; drop 32 bit
[oi-userland.git] / components / desktop / gkrellm / patches / 04-fix-diskinfo-crash.patch
blob2818c187762328dab0cb40ff8157d81da79c0a94
1 Fixes crash in gkrellm_disk_assign_data_by_name()
2 --- gkrellm-2.3.10/src/sysdeps/solaris.c.~2~ 2020-07-20 23:14:32.537403716 +0000
3 +++ gkrellm-2.3.10/src/sysdeps/solaris.c 2020-07-20 23:16:09.486411565 +0000
4 @@ -262,7 +262,7 @@
5 static gint get_instance(gint);
7 typedef struct {
8 - char name[8];
9 + char name[KSTAT_STRLEN];
10 } probed_harddisk;
12 GList *hard_disk_list;
13 @@ -301,6 +301,8 @@
15 if(strcmp(drive->name, ksp->ks_name))
16 continue;
17 + if(!isharddisk(ksp))
18 + continue;
20 memset((void *)&kios, 0, sizeof(kstat_io_t));
21 kstat_read(kc, ksp, &kios);