ref: f89e01cfd6dfd6e278d9c3b6978e8cc32f9089ee
parent: 2ff799d51028b4c89c78332172aaab97a1e0daeb
parent: 49650107109aebc7177dec7ff7bb073669f6dc47
author: Sigrid <sigrid.haflinadottir@gmail.com>
date: Tue Apr 25 09:47:59 EDT 2017
Merge pull request #2 from egor7/fix-s9proc-attach 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;