~ft/c9

589af8c97a72e459761d9dce0e7c826191b086c2 — Sergey Rogachev 6 years ago bf1ceba
fix incorrect Tcreate parsing

Without this commit s9proc places
parts of the filename to t.create.perm
and t.create.mode.
1 files changed, 1 insertions(+), 0 deletions(-)

M c9.c
M c9.c => c9.c +1 -0
@@ 1074,6 1074,7 @@ s9proc(C9ctx *c)
		if((cnt = r16(&b)) < 1 || cnt > sz-4-2-4-1)
			goto error;
		t.create.name = (char*)b;
		b += cnt;
		t.create.perm = r32(&b);
		t.create.mode = r08(&b);
		t.create.name[cnt] = 0;