changelog shortlog tags branches changeset file revisions annotate raw help

Mercurial > hg > plan9front / sys/src/cmd/upas/ned/nedmail.c

revision 7043: ee85e5437edf
parent 6577: 60aec31a4d49
     1.1--- a/sys/src/cmd/upas/ned/nedmail.c
     1.2+++ b/sys/src/cmd/upas/ned/nedmail.c
     1.3@@ -1074,7 +1074,7 @@ parsesearch(char **pp, char *buf, int bu
     1.4 	np = qstrchr(p, c);
     1.5 	if(c == '#' && np)
     1.6 	if(e = qstrchr(np + 1, c)){
     1.7-		snprint(buf, bufl, "%.*s", (int)(np - p), p);
     1.8+		snprint(buf, bufl, "%.*s", utfnlen(p, np - p), p);
     1.9 		p = np + 1;
    1.10 		np = e;
    1.11 	}