Fix char[] without a NULL character '\0' in the array reading over the char[] bounds (cherry picked from commit fd844e3d7e18212d6e8dd6531eac1f198527926b)
Fix char[] without a NULL character '\0' in the array reading over the char[] bounds (cherry picked from commit fd844e3d7e18212d6e8dd6531eac1f198527926b)