]> git.pond.sub.org Git - empserver/commit
(recvline): Rewrite the loop to receive a line from a socket. The new
authorMarkus Armbruster <armbru@pond.sub.org>
Fri, 14 Dec 2007 07:26:30 +0000 (07:26 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Fri, 14 Dec 2007 07:26:30 +0000 (07:26 +0000)
commit8cdf2532d42de683f41e9b1816484a62e1694867
treec54c3f7a4be9816437cef356d712c39310635083
parent3807cffe5278802ed7135056986e961d20d190c3
(recvline): Rewrite the loop to receive a line from a socket.  The new
version silently truncates long lines.  The old one split them up and
got quite confused.  It got also confused when the line didn't arrive
in one piece.  Icing on the cake: it wrote beyond the end of the
buffer.  The new version is less efficient, but that doesn't matter
here.
src/client/expect.c