Small bug fixes.
This commit is contained in:
parent
15680d56a6
commit
8c6f0e8ab4
2 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue