From 99829ef5fbff1c0a4aa9fb0b55b4720b44985c39 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 26 Nov 2001 13:08:36 +0000 Subject: * keydb.c (keydb_add_resource): Create keybox * keylist.c (gpgsm_list_keys): Fixed non-server keylisting. * server.c (rc_to_assuan_status): New. Use it for all commands. --- sm/call-agent.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sm/call-agent.c') diff --git a/sm/call-agent.c b/sm/call-agent.c index c440f2bf1..16cc46fb7 100644 --- a/sm/call-agent.c +++ b/sm/call-agent.c @@ -470,16 +470,16 @@ request_reply (const char *line, struct membuf *membuf) for (;len && *p != '%'; len--, p++) ; put_membuf (membuf, buf, p-buf); - buf = p; if (len>2) { /* handle escaping */ unsigned char tmp[1]; - buf++; - *tmp = xtoi_2 (buf); - buf += 2; + p++; + *tmp = xtoi_2 (p); + p += 2; len -= 3; put_membuf (membuf, tmp, 1); } + buf = p; } goto again; } -- cgit