aboutsummaryrefslogtreecommitdiffstats
path: root/gpgme/rungpg.c
diff options
context:
space:
mode:
Diffstat (limited to 'gpgme/rungpg.c')
-rw-r--r--gpgme/rungpg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gpgme/rungpg.c b/gpgme/rungpg.c
index 1cb4d39b..349b24dd 100644
--- a/gpgme/rungpg.c
+++ b/gpgme/rungpg.c
@@ -845,6 +845,8 @@ read_status (engine_gpg_t gpg)
if (*p == '\n')
{
/* (we require that the last line is terminated by a LF) */
+ if (p > buffer && p[-1] = '\r')
+ p[-1] = 0;
*p = 0;
if (!strncmp (buffer, "[GNUPG:] ", 9)
&& buffer[9] >= 'A' && buffer[9] <= 'Z')