From 8c84ff95f677570f1223e8e95256126acd273b99 Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Wed, 27 Feb 2019 23:48:25 +0000 Subject: [PATCH] build: fix fmemopen Thanks to @vinpublic --- pattern.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pattern.c b/pattern.c index 604b4fb1e..f2f9c7684 100644 --- a/pattern.c +++ b/pattern.c @@ -1110,8 +1110,8 @@ static bool msg_search(struct Mailbox *m, struct Pattern *pat, int msgno) s.fp_in = msg->fp; s.flags = MUTT_CHARCONV; #ifdef USE_FMEMOPEN - s.fpout = open_memstream(&temp, &tempsize); - if (!s.fpout) + s.fp_out = open_memstream(&temp, &tempsize); + if (!s.fp_out) { mutt_perror(_("Error opening 'memory stream'")); return false; @@ -1151,7 +1151,7 @@ static bool msg_search(struct Mailbox *m, struct Pattern *pat, int msgno) } #ifdef USE_FMEMOPEN - fclose(s.fpout); + fclose(s.fp_out); lng = tempsize; if (tempsize) -- 2.40.0