From 39e5957ace14f1dcff62014fd26f368e87c79c29 Mon Sep 17 00:00:00 2001 From: rsc Date: Sun, 5 Feb 2006 15:34:18 +0000 Subject: Experiment: ignore double-responds. Also allow nil string as empty string in readstr. --- src/lib9p/util.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/lib9p/util.c') diff --git a/src/lib9p/util.c b/src/lib9p/util.c index 17588a95..5b76f73a 100644 --- a/src/lib9p/util.c +++ b/src/lib9p/util.c @@ -21,5 +21,8 @@ readbuf(Req *r, void *s, long n) void readstr(Req *r, char *s) { - readbuf(r, s, strlen(s)); + if(s == nil) + r->ofcall.count = 0; + else + readbuf(r, s, strlen(s)); } -- cgit v1.2.3