Small bug fixes.

This commit is contained in:
rsc 2004-03-05 05:58:48 +00:00
parent 15680d56a6
commit 8c6f0e8ab4
2 changed files with 3 additions and 3 deletions

View file

@ -116,7 +116,7 @@ void
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);

View file

@ -201,8 +201,8 @@ _threadnalt++;
}else{
altexec(a, s); /* unlocks chanlock, does splx */
}
t->chan = Channone;
_threadnalt++;
if(t)
t->chan = Channone;
return a - alts;
}