bug fixes

This commit is contained in:
rsc 2005-01-18 20:15:18 +00:00
parent aa1d0b1bb0
commit 361e279c59
5 changed files with 16 additions and 11 deletions

View file

@ -135,9 +135,12 @@ int
vtwrite(VtConn *z, uchar score[VtScoreSize], uint type, uchar *buf, int n)
{
Packet *p;
int nn;
p = packetforeign(buf, n, 0, nil);
return vtwritepacket(z, score, type, p);
nn = vtwritepacket(z, score, type, p);
packetfree(p);
return nn;
}
int