diff options
Diffstat (limited to 'g10/armor.c')
-rw-r--r-- | g10/armor.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/g10/armor.c b/g10/armor.c index 576a15ff4..dc646e83f 100644 --- a/g10/armor.c +++ b/g10/armor.c @@ -928,8 +928,15 @@ armor_filter( void *opaque, int control, iobuf_writestr(a, LF ); } - if( afx->hdrlines ) - iobuf_writestr(a, afx->hdrlines); + if ( afx->hdrlines ) { + for ( s = afx->hdrlines; *s; s++ ) { + #ifdef HAVE_DOSISH_SYSTEM + if ( *s == '\n' ) + iobuf_put( a, '\r'); + #endif + iobuf_put(a, *s ); + } + } iobuf_writestr(a, LF ); afx->status++; afx->idx = 0; |