code: drawterm

Download patch

ref: 276098f816a9188c711f51ace9a92df54997b791
parent: faa1eca1d31550d9dd111d849940dc0c9e5a5d48
author: Russ Cox <rsc@swtch.com>
date: Sun Jun 24 14:56:06 EDT 2007

fix auth problem

--- a/cpu.c
+++ b/cpu.c
@@ -623,7 +623,7 @@
 	auth.id = 0;
 	convA2M(&auth, tbuf+TICKETLEN, t.key);
 
-	if(write(fd, tbuf+1, TICKETLEN+AUTHENTLEN) != TICKETLEN+AUTHENTLEN)
+	if(write(fd, tbuf, TICKETLEN+AUTHENTLEN) != TICKETLEN+AUTHENTLEN)
 		fatal(1, "cannot send ticket and authenticator back in p9sk1");
 
 	if((n=readn(fd, tbuf, AUTHENTLEN)) != AUTHENTLEN ||