From: Thomas Roessler Date: Mon, 2 Jul 2001 20:28:32 +0000 (+0000) Subject: Fix a minor nit with the external query interface. X-Git-Tag: mutt-1-3-20-rel~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bdee82dca9ffe16d29d2951b2f518aa198f666a4;p=mutt Fix a minor nit with the external query interface. --- diff --git a/query.c b/query.c index a153f740..93cea1ad 100644 --- a/query.c +++ b/query.c @@ -91,7 +91,9 @@ static QUERY *run_query (char *s, int quiet) } if (!quiet) mutt_message _("Waiting for response..."); - fgets (msg, sizeof (msg) - 1, fp); + fgets (msg, sizeof (msg), fp); + if ((p = strrchr (msg, '\n'))) + *p = '\0'; while ((buf = mutt_read_line (buf, &buflen, fp, &dummy)) != NULL) { if ((p = strtok(buf, "\t\n")))