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 */
|
chopbox(Frame *f, Frbox *b, int n) /* drop first n chars; no allocation done */
|
||||||
{
|
{
|
||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
if(b->nrune<0 || b->nrune<n)
|
if(b->nrune<0 || b->nrune<n)
|
||||||
drawerror(f->display, "chopbox");
|
drawerror(f->display, "chopbox");
|
||||||
p = (char*)runeindex(b->ptr, n);
|
p = (char*)runeindex(b->ptr, n);
|
||||||
|
|
|
||||||
|
|
@ -201,8 +201,8 @@ _threadnalt++;
|
||||||
}else{
|
}else{
|
||||||
altexec(a, s); /* unlocks chanlock, does splx */
|
altexec(a, s); /* unlocks chanlock, does splx */
|
||||||
}
|
}
|
||||||
t->chan = Channone;
|
if(t)
|
||||||
_threadnalt++;
|
t->chan = Channone;
|
||||||
return a - alts;
|
return a - alts;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue