changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: vt: fix %.*s in sendncars()

changeset 7040: 7352fb6f49ce
parent 7039: 32d099aa68a6
child 7041: a80696e30622
author: cinap_lenrek@felloff.net
date: Mon, 25 Feb 2019 03:25:36 +0100
files: sys/src/cmd/vt/main.c
description: vt: fix %.*s in sendncars()
     1.1--- a/sys/src/cmd/vt/main.c
     1.2+++ b/sys/src/cmd/vt/main.c
     1.3@@ -213,6 +213,8 @@ send_interrupt(void)
     1.4 void
     1.5 sendnchars(int n, char *p)
     1.6 {
     1.7+	if((n = utfnlen(p, n)) < 1)
     1.8+		return;
     1.9 	hostin = smprint("%.*s", n, p);
    1.10 	while(hostin != nil){
    1.11 		if(nbsendp(hc[0], hostin)){