aboutsummaryrefslogtreecommitdiffstats
path: root/g10/armor.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1998-02-27 17:51:28 +0000
committerWerner Koch <[email protected]>1998-02-27 17:51:28 +0000
commitb13e238a195893b55e09f2c5d73c70b27a040a50 (patch)
tree78f97a94022956ff0b12cb9e1bfcf407077688f7 /g10/armor.c
parentrelease 0.2.9 (diff)
downloadgnupg-b13e238a195893b55e09f2c5d73c70b27a040a50.tar.gz
gnupg-b13e238a195893b55e09f2c5d73c70b27a040a50.zip
bug fixesV0-2-10
Diffstat (limited to 'g10/armor.c')
-rw-r--r--g10/armor.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/g10/armor.c b/g10/armor.c
index 80de65551..142e0bd82 100644
--- a/g10/armor.c
+++ b/g10/armor.c
@@ -318,6 +318,8 @@ find_header( fhdr_state_t state, byte *buf, size_t *r_buflen,
if( n < buflen || c == '\n' ) {
if( n && buf[0] != '\r') { /* maybe a header */
if( strchr( buf, ':') ) { /* yes */
+ if( buf[n-1] == '\r' )
+ buf[--n] = 0;
if( opt.verbose ) {
log_info("armor header: ");
print_string( stderr, buf, n );