mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Don't rely on rather arbitrary values for the string buffer size of different sysfs paths. Instead use util_path_sysfs(), which allocates the exact amount of memory necessary for a certain path string. As these path strings are dynamically constructed, potential buffer overflows can hereby be avoided and make the library functions more robust. Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>