From 3da4fe1a59da55332e67db06c4b3386a0ccc3e8b Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Tue, 7 Oct 2008 15:58:24 -0700 Subject: [PATCH] Minor simplification in mutt_socket_readln_d --- ChangeLog | 12 ++++++++++++ mutt_socket.c | 5 ++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4c3329dd..8873bc32 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2008-10-07 15:27 -0700 Brendan Cully (d13106731007) + + * mutt_idna.c, mutt_idna.h: Build no-op versions of new IDN functions + if IDN is unavailable. Closes #3122, #3123. + +2008-10-01 09:33 -0700 Brendan Cully (13a831a945be) + + * configure.ac: Clean up autoconf header cache engine selection. + + Any explicit --with-$engine will force that engine to be used or + make configure fail if the engine is unavailable. + 2008-09-29 14:31 -0700 Emanuele Giaquinta (ec96c56be182) * mutt_socket.c: Simplify host resolution code slightly. diff --git a/mutt_socket.c b/mutt_socket.c index 4d9f499d..8a8874c4 100644 --- a/mutt_socket.c +++ b/mutt_socket.c @@ -205,9 +205,8 @@ int mutt_socket_readln_d (char* buf, size_t buflen, CONNECTION* conn, int dbg) /* strip \r from \r\n termination */ if (i && buf[i-1] == '\r') - buf[--i] = '\0'; - else - buf[i] = '\0'; + i--; + buf[i] = '\0'; dprint (dbg, (debugfile, "%d< %s\n", conn->fd, buf)); -- 2.40.0