shithub: c9

Download patch

ref: ccbf4c390afd940d21e4f5e5897a8c9d1d5ed1b1
parent: bf1cebabe1e69aafd9be5d68f40f65e1d537bae6
parent: 589af8c97a72e459761d9dce0e7c826191b086c2
author: Sigrid Haflínudóttir <sigrid.haflinadottir@gmail.com>
date: Tue Oct 2 10:50:13 EDT 2018

Merge pull request #4 from richiefreedom/fix-tcreate-parsing

fix incorrect Tcreate parsing

--- a/c9.c
+++ b/c9.c
@@ -1074,6 +1074,7 @@
 		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;