mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
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.
This commit is contained in:
parent
4792984f1e
commit
289b05ea50
@ -792,7 +792,7 @@ _remove_header_footer(char *str, const char *const footer)
|
|||||||
int pos = 0;
|
int pos = 0;
|
||||||
int newlines = 0;
|
int newlines = 0;
|
||||||
|
|
||||||
while (newlines < 3) {
|
while (newlines < 2) {
|
||||||
if (str[pos] == '\n') {
|
if (str[pos] == '\n') {
|
||||||
newlines++;
|
newlines++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user