len_line may be < *x. Use len_malloc for extra char count