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