~kris/9p

9hist

fc39329736e31a41a82f2fabe9ceb88de4e3a167 — David du Colombier 27 years ago 33665ee
Plan 9 from Bell Labs 1999-03-24
1 files changed, 6 insertions(+), 0 deletions(-)

M pc/devata.c
M pc/devata.c => pc/devata.c +6 -0
@@ 865,6 865,9 @@ ataread(Chan* c, void* a, long n, vlong off)
	}
	pp = &dp->p[PART(c->qid.path)];

	if(off < 0)
		error(Ebadarg);

	buf = smalloc(Maxxfer);
	if(waserror()){
		free(buf);


@@ 935,6 938,9 @@ atawrite(Chan *c, void *a, long n, vlong off)
	}
	pp = &dp->p[PART(c->qid.path)];

	if(off < 0)
		error(Ebadarg);

	buf = smalloc(Maxxfer);
	if(waserror()){
		free(buf);