changelog shortlog tags branches changeset file revisions annotate raw help

Mercurial > hg > plan9front / sys/src/cmd/upas/scanmail/common.c

revision 7042: 4564c92bb864
parent 0: eaccc3e8d226
     1.1--- a/sys/src/cmd/upas/scanmail/common.c
     1.2+++ b/sys/src/cmd/upas/scanmail/common.c
     1.3@@ -624,7 +624,10 @@ xprint(int fd, char *type, Resub *m)
     1.4 	while(*q && *q != ' ')
     1.5 		q++;
     1.6 
     1.7-	fprint(fd, "%s %.*s~%.*s~%.*s\n", type, (int)(m->sp-p), p, (int)(m->ep-m->sp), m->sp, (int)(q-m->ep), m->ep);
     1.8+	fprint(fd, "%s %.*s~%.*s~%.*s\n", type, 
     1.9+		utfnlen(p, m->sp-p), p,
    1.10+		utfnlen(m->sp, m->ep-m->sp), m->sp,
    1.11+		utfnlen(m->ep, q-m->ep), m->ep);
    1.12 }
    1.13 
    1.14 enum {