ref: 3043052e24a954359937062ee1b911541c2070ae
parent: e1dcd2beb412a3e77b5c6df23571135137b486ed
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Feb 24 22:25:36 EST 2019
vt: fix %.*s in sendncars()
--- a/sys/src/cmd/vt/main.c
+++ b/sys/src/cmd/vt/main.c
@@ -213,6 +213,8 @@
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)){