[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/3] use custom getline() implementation
From: |
Simon Josefsson |
Subject: |
Re: [PATCH 1/3] use custom getline() implementation |
Date: |
Mon, 21 Nov 2011 13:42:38 +0100 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux) |
Hi Enrico,
Have you looked at gnulib's linebuffer.c? It is also a getline-like
interface, but it should work line-by-line. See:
http://git.savannah.gnu.org/cgit/gnulib.git/tree/lib/linebuffer.c
I am a bit concerned with adding a lot of code here, but I do agree that
you've identified a real bug in the code. Ideally the entire protocol
parsing stuff should be rewritten in a more robust way, but I don't have
time to work on that myself right now.
/Simon