This commit is contained in:
Russ Cox
2005-11-02 15:20:27 +00:00
parent 5d6ebf7a53
commit e4f9a4578a
7 changed files with 18 additions and 11 deletions

View File

@@ -456,7 +456,7 @@ kbdputc(Queue *q, int c)
kc[nk++] = c;
c = latin1(kc, nk);
if(c < -1) /* need more keystrokes */
return;
return 0;
if(c != -1) /* valid sequence */
_kbdputc(c);
else

View File

@@ -59,7 +59,7 @@ kproc(char *name, void (*fn)(void*), void *arg)
p->fgrp = up->fgrp;
if(p->fgrp)
incref(&p->fgrp->ref);
strecpy(p->text, sizeof p->text, name);
strecpy(p->text, p->text+sizeof p->text, name);
osproc(p);
return p->pid;