ref: 49650107109aebc7177dec7ff7bb073669f6dc47
parent: 2ff799d51028b4c89c78332172aaab97a1e0daeb
author: Egor Shalashnikov <egor.shalashnikov@gmail.com>
date: Tue Apr 25 10:37:05 EDT 2017
fix aname buffers in s9proc
--- a/c9.c
+++ b/c9.c
@@ -1121,7 +1121,7 @@
if(cnt > sz)
goto error;
memmove(b-1, b, cnt);
- t.attach.aname = (char*)b;
+ t.attach.aname = (char*)b-1;
t.attach.aname[cnt] = 0;
c->t(c, &t);
break;
@@ -1142,7 +1142,7 @@
if(cnt > sz)
goto error;
memmove(b-1, b, cnt);
- t.auth.aname = (char*)b;
+ t.auth.aname = (char*)b-1;
t.auth.aname[cnt] = 0;
c->t(c, &t);
break;