After upgrade to 3.0.0, htop can't open in my laptop and just print htop: No such file or directory.
I use bisect to find out 1886117 cause this issue.
This commit is ok but const char filePath[50]; is too small to store /sys/class/power_supply/ucsi-source-psy-USBC000:001/type which is 57 bytes without \0.
Changing the buffer size to 70 can fix this issue.
After upgrade to 3.0.0, htop can't open in my laptop and just print
htop: No such file or directory.I use bisect to find out 1886117 cause this issue.
This commit is ok but
const char filePath[50];is too small to store/sys/class/power_supply/ucsi-source-psy-USBC000:001/typewhich is 57 bytes without\0.Changing the buffer size to 70 can fix this issue.