aboutsummaryrefslogtreecommitdiffstats
path: root/g10/hkp.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/hkp.c')
-rw-r--r--g10/hkp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/g10/hkp.c b/g10/hkp.c
index 62568f70f..3a7b654f6 100644
--- a/g10/hkp.c
+++ b/g10/hkp.c
@@ -234,6 +234,11 @@ write_quoted(IOBUF a, const char *buf, char delim)
if(iobuf_writestr(a,quoted))
return -1;
}
+ else if(*buf=='\\')
+ {
+ if(iobuf_writestr(a,"\\x5c"))
+ return -1;
+ }
else
{
if(iobuf_writebyte(a,*buf))