diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-09-26 14:32:17 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-09-26 14:32:17 +0200 |
commit | 311e3b51c6b1bde2f58968453de56a5ca2a6dbb4 (patch) | |
tree | 126a2f4067c6dae52ca0a39a946680c1dff42329 /sys/src/cmd/ip/dhcp6d.c | |
parent | f18e8dfde88d00a19a184604865aa4d6383b16f5 (diff) |
libc: return number of bytes produced for idn2utf() and utf2idn()
Diffstat (limited to 'sys/src/cmd/ip/dhcp6d.c')
-rw-r--r-- | sys/src/cmd/ip/dhcp6d.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/ip/dhcp6d.c b/sys/src/cmd/ip/dhcp6d.c index ca87f0c00..8250518a0 100644 --- a/sys/src/cmd/ip/dhcp6d.c +++ b/sys/src/cmd/ip/dhcp6d.c @@ -571,7 +571,7 @@ odomainlist(uchar *w, int n, Otab *o, Req *q) for(t = q->t; t != nil; t = t->entry){ if(strcmp(t->attr, o->q[0]) != 0) continue; - if(utf2idn(t->val, val, sizeof(val)) == nil) + if(utf2idn(t->val, val, sizeof(val)) <= 0) continue; for(s = val; *s != 0; s++){ for(l = 0; *s != 0 && *s != '.'; l++) |