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/ndb/inform.c | |
parent | f18e8dfde88d00a19a184604865aa4d6383b16f5 (diff) |
libc: return number of bytes produced for idn2utf() and utf2idn()
Diffstat (limited to 'sys/src/cmd/ndb/inform.c')
-rw-r--r-- | sys/src/cmd/ndb/inform.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/ndb/inform.c b/sys/src/cmd/ndb/inform.c index 7837c03c0..1ebcfa35c 100644 --- a/sys/src/cmd/ndb/inform.c +++ b/sys/src/cmd/ndb/inform.c @@ -174,10 +174,10 @@ main(int argc, char *argv[]) sysfatal("no relevant dnsdomain="); - if(utf2idn(dom, dn, sizeof(dn)) == nil) + if(utf2idn(dom, dn, sizeof(dn)) <= 0) sysfatal("cannot convert dom"); - if(utf2idn(dnsdomain, ds, sizeof(ds)) == nil) + if(utf2idn(dnsdomain, ds, sizeof(ds)) <= 0) sysfatal("cannot convert dnsdomain"); if(debug){ |