diff options
Diffstat (limited to 'sm/call-agent.c')
-rw-r--r-- | sm/call-agent.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; } |