player: fixed length of ack packets

This commit is contained in:
schneider 2011-12-22 21:32:11 +01:00
parent 41d96707c0
commit de4f010c2a
1 changed files with 1 additions and 1 deletions

View File

@ -313,7 +313,7 @@ void processPacket(struct packet *p)
if (p->command=='T'){ if (p->command=='T'){
struct packet ack; struct packet ack;
memset((void*)&ack, 0, sizeof(ack)); memset((void*)&ack, 0, sizeof(ack));
ack.len=sizeof(p); ack.len=sizeof(ack);
ack.protocol='G'; ack.protocol='G';
ack.command='a'; ack.command='a';
ack.id= id; ack.id= id;