From 289b05ea5015ee38fe105839a7ad806678f38f15 Mon Sep 17 00:00:00 2001 From: Viachaslau Khalikin Date: Tue, 24 Jul 2018 05:21:09 +0000 Subject: [PATCH] Restoration of correct GPG encryption Fixes https://github.com/boothj5/profanity/issues/997 Proposed as https://github.com/boothj5/profanity/pull/1008 Related to XEP-0027. Message edited and commit cherry picked by jubalh. --- src/pgp/gpg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pgp/gpg.c b/src/pgp/gpg.c index 8d2c1eab..0dbf0a8e 100644 --- a/src/pgp/gpg.c +++ b/src/pgp/gpg.c @@ -792,7 +792,7 @@ _remove_header_footer(char *str, const char *const footer) int pos = 0; int newlines = 0; - while (newlines < 3) { + while (newlines < 2) { if (str[pos] == '\n') { newlines++; }