tdebugging - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 4192ac1de11674c91bbe390fc8afa187657f9223
(DIR) parent 09a5f197726c79ef7221cc6f83527c65a6bb1ca3
(HTM) Author: rsc <devnull@localhost>
Date: Wed, 9 Jun 2004 14:03:54 +0000
debugging
Diffstat:
M src/libventi/client.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/src/libventi/client.c b/src/libventi/client.c
t@@ -84,7 +84,6 @@ vtreadpacket(VtConn *z, uchar score[VtScoreSize], uint type, int n)
return nil;
}
}
-
return rx.data;
}
t@@ -119,7 +118,8 @@ vtwritepacket(VtConn *z, uchar score[VtScoreSize], uint type, Packet *p)
werrstr("sha1 hash mismatch: want %V got %V", score, rx.score);
return -1;
}
- }
+ }else
+ memmove(score, rx.score, VtScoreSize);
return 0;
}