Fix possible line endings with \r
Fix crash in zoom.c