upas/ned: fix %.*s format in parsesearch(), improve mkfile
parent
536805bce3
commit
2e5cd278d7
|
@ -1,5 +1,4 @@
|
|||
</$objtype/mkfile
|
||||
<../mkupas
|
||||
|
||||
TARG=nedmail
|
||||
|
||||
|
@ -17,3 +16,4 @@ UPDATE=\
|
|||
</sys/src/cmd/mkone
|
||||
CFLAGS=$CFLAGS -I../common
|
||||
|
||||
<../mkupas
|
||||
|
|
|
@ -1074,7 +1074,7 @@ parsesearch(char **pp, char *buf, int bufl)
|
|||
np = qstrchr(p, c);
|
||||
if(c == '#' && np)
|
||||
if(e = qstrchr(np + 1, c)){
|
||||
snprint(buf, bufl, "%.*s", (int)(np - p), p);
|
||||
snprint(buf, bufl, "%.*s", utfnlen(p, np - p), p);
|
||||
p = np + 1;
|
||||
np = e;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue