commit - 15680d56a6c6e15921d958aa6006825c2cd20bf8
commit + 8c6f0e8ab423f508fc0ce0532c1006b13fc35089
blob - beb37c1611a5f6d35f7c56d85c923318a37de38b
blob + eddb4fba22bbe6e7e2e263a2fa4f2ccac26e3443
--- src/libframe/frbox.c
+++ src/libframe/frbox.c
chopbox(Frame *f, Frbox *b, int n) /* drop first n chars; no allocation done */
{
char *p;
-
+
if(b->nrune<0 || b->nrune<n)
drawerror(f->display, "chopbox");
p = (char*)runeindex(b->ptr, n);
blob - d0fff4a652c93f810f77199c9237bbbe8a422336
blob + 48fe78c7d9c4470dc9526f7976c9a2e2a1899c5b
--- src/libthread/channel.c
+++ src/libthread/channel.c
}else{
altexec(a, s); /* unlocks chanlock, does splx */
}
- t->chan = Channone;
-_threadnalt++;
+ if(t)
+ t->chan = Channone;
return a - alts;
}