vt: fix %.*s in sendncars()
This commit is contained in:
parent
e1dcd2beb4
commit
3043052e24
|
@ -213,6 +213,8 @@ send_interrupt(void)
|
|||
void
|
||||
sendnchars(int n, char *p)
|
||||
{
|
||||
if((n = utfnlen(p, n)) < 1)
|
||||
return;
|
||||
hostin = smprint("%.*s", n, p);
|
||||
while(hostin != nil){
|
||||
if(nbsendp(hc[0], hostin)){
|
||||
|
|
Loading…
Reference in a new issue