ref: bc5b85c37c2d966b6d65dededcfe4f9dd38eed9d
parent: 28bcea12aa084166f75a51c68c44dbf74fae52e3
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Feb 24 23:17:19 EST 2019
aux/statusmsg: fix %.*s format
--- a/sys/src/cmd/aux/statusmsg.c
+++ b/sys/src/cmd/aux/statusmsg.c
@@ -90,7 +90,7 @@
_exits(0);
}
while(!die && (p = Brdline(b, '\n'))){
- snprint(message, Bsize, "%.*s", Blinelen(b)-1, p);
+ snprint(message, Bsize, "%.*s", utfnlen(p, Blinelen(b)-1), p);
drawmsg();
}
if(textmode){