ref: 6f43504150a0f684ab55ee901e81bf95f6d7d4e0
parent: ef86c10f900cf333931461039ce2a41641727138
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)){--
⑨