Fix truncation problem when reading in long lines. Found by Koen Kooi.