]> granicus.if.org Git - mutt/commitdiff
Fix a minor nit with the external query interface.
authorThomas Roessler <roessler@does-not-exist.org>
Mon, 2 Jul 2001 20:28:32 +0000 (20:28 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Mon, 2 Jul 2001 20:28:32 +0000 (20:28 +0000)
query.c

diff --git a/query.c b/query.c
index a153f740b75152ea5afec9f3fb3f848839b67a9a..93cea1ad4fe7d2caa72e9d2a8d209141318a2953 100644 (file)
--- 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")))