mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
strip_right() strips spaces beginning at the end of the string moving to the beginning. However, it doesn't check whether it's at beginning of the array, and would continue reading if the string only contains spaces. Fix this by adding the necessary check. Signed-off-by: Sven Schnelle <svens@linux.ibm.com> Reviewed-by: Mete Durlu <meted@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>