mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Replace read_str() helper in ipl_tools/system.c with util_file_read_text_file() to enhance maintainability and reduce code duplication. Additionally, allocate the buffer dynamically instead of using fixed-size buffer to prevent potential overflows and data loss. Signed-off-by: Jan Polensky <japo@linux.ibm.com> Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>