consider existing line len when testing if reallocation is needed