changelog shortlog tags branches changeset file revisions annotate raw help

Mercurial > hg > plan9front / sys/src/cmd/upas/smtp/smtp.c

revision 7041: a80696e30622
parent 6619: df98fe390855
child 7288: 765db6013c41
     1.1--- a/sys/src/cmd/upas/smtp/smtp.c
     1.2+++ b/sys/src/cmd/upas/smtp/smtp.c
     1.3@@ -474,7 +474,7 @@ smtpcram(DS *ds)
     1.4 		return "cannot find user name";
     1.5 	for(i = 0; i < n; i++)
     1.6 		rbuf[i] = tolower(rbuf[i]);
     1.7-	l = snprint(ubuf, sizeof ubuf, "%s %.*s", usr, n, rbuf);
     1.8+	l = snprint(ubuf, sizeof ubuf, "%s %.*s", usr, utfnlen(rbuf, n), rbuf);
     1.9 	snprint(ebuf, sizeof ebuf, "%.*[", l, ubuf);
    1.10 
    1.11 	dBprint("%s\r\n", ebuf);