From 162c528967703e94f6a7e8e71d78092174462edb Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Mon, 26 Oct 1992 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1992-10-26 --- port/devbit.c | 2 +- port/sturp.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/port/devbit.c b/port/devbit.c index c8fdfac31580b5175e3051e65044f294e2befacb..014f024ffb4418b4dac9c6d9220a920d3a6edae5 100644 --- a/port/devbit.c +++ b/port/devbit.c @@ -1104,12 +1104,12 @@ bitwrite(Chan *c, void *va, long n, ulong offset) f = bitmalloc(sizeof(BSubfont)); if(f == 0) error(Enomem); - bit.subfont[i] = f; f->info = bitmalloc((v+1)*sizeof(Fontchar)); if(f->info == 0){ free(f); error(Enomem); } + bit.subfont[i] = f; f->n = v; f->height = p[3]; f->ascent = p[4]; diff --git a/port/sturp.c b/port/sturp.c index e2e2f00a5d33ce24e1b3a9bfe445aef552e4d1ae..cff9e75b7022a9d0a4f63898b4603ab2e08ec359 100644 --- a/port/sturp.c +++ b/port/sturp.c @@ -571,6 +571,11 @@ urpctloput(Urp *up, Queue *q, Block *bp) switch(bp->type){ case M_CTL: + if(streamparse("break", bp)){ + sendctl(up, BREAK); + freeb(bp); + return; + } if(streamparse("init", bp)){ outwin = strtoul((char*)bp->rptr, 0, 0); initoutput(up, outwin);