From 0640f455c8faf0bd7102cf99496e4b1955f17858 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Thu, 13 Sep 2001 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 2001-09-13 --- port/devdraw.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/port/devdraw.c b/port/devdraw.c index 39ed80c96d86bf94f98d605695e78d4b34cecf93..43b76bdabccb45c6c467b94eee832fc08aa6d260 100644 --- a/port/devdraw.c +++ b/port/devdraw.c @@ -906,8 +906,10 @@ drawopen(Chan *c, int omode) { Client *cl; - if(c->qid.type & QTDIR) - return devopen(c, omode, 0, 0, drawgen); + if(c->qid.type & QTDIR){ + c = devopen(c, omode, 0, 0, drawgen); + c->iounit = 32*1024; + } qlock(&sdraw); if(waserror()){