diff options
author | Viachaslau Khalikin <khalikin@yandex.by> | 2018-07-24 05:21:09 +0000 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2019-02-20 11:53:40 +0100 |
commit | 289b05ea5015ee38fe105839a7ad806678f38f15 (patch) | |
tree | cbabf0a8247d51344d0c39fd8eb8b40812c4b3b8 | |
parent | 4792984f1e27b12edbf9e3d87faf138565960713 (diff) | |
download | profani-tty-289b05ea5015ee38fe105839a7ad806678f38f15.tar.gz |
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.
-rw-r--r-- | src/pgp/gpg.c | 2 |
1 files changed, 1 insertions, 1 deletions
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++; } |