vt: fix %.*s in sendncars()

This commit is contained in:
cinap_lenrek 2019-02-25 03:25:36 +01:00
parent e1dcd2beb4
commit 3043052e24

View file

@ -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)){