summaryrefslogtreecommitdiff
path: root/sys/src/cmd/abaco
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2019-02-25 04:20:43 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2019-02-25 04:20:43 +0100
commit4de506404becf0e67f64e24685a52bcb9753146d (patch)
treefc5935af597883f160f08f5390f14034d7ce6db1 /sys/src/cmd/abaco
parent980d64826e1d64c992313ae3f020298dd3dcfe37 (diff)
abaco: fix %.*s format in findctype()
Diffstat (limited to 'sys/src/cmd/abaco')
-rw-r--r--sys/src/cmd/abaco/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/abaco/util.c b/sys/src/cmd/abaco/util.c
index d9c18207c..ff4e5e1aa 100644
--- a/sys/src/cmd/abaco/util.c
+++ b/sys/src/cmd/abaco/util.c
@@ -747,7 +747,7 @@ findctype(char *b, int l, char *keyword, char *s)
for(e = p; *e < 127 && *e > ' ' ; e++)
;
}
- i = e-p;
+ i = utfnlen(p, e - p);
if(i < 1)
return -1;
snprint(b, l, "%.*s", i, p);