file_util.c: fix possible bad memory access in file_read_line_alloc()