diff options
author | Denys Vlasenko | 2010-01-30 23:16:21 +0100 |
---|---|---|
committer | Denys Vlasenko | 2010-01-30 23:16:21 +0100 |
commit | e17764c8fb566f85020217dd8fd05fb6bc227e98 (patch) | |
tree | cf0a42cc23cd4aae92e69924087610a941c712a4 /networking/udhcp | |
parent | ecd90fd488cd0c519070656f5cfa0b0959979be9 (diff) | |
download | busybox-e17764c8fb566f85020217dd8fd05fb6bc227e98.zip busybox-e17764c8fb566f85020217dd8fd05fb6bc227e98.tar.gz |
further work on unicodization
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp')
-rw-r--r-- | networking/udhcp/dumpleases.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/networking/udhcp/dumpleases.c b/networking/udhcp/dumpleases.c index d8f5da7..eab9713 100644 --- a/networking/udhcp/dumpleases.c +++ b/networking/udhcp/dumpleases.c @@ -71,8 +71,11 @@ int dumpleases_main(int argc UNUSED_PARAM, char **argv) /* actually, 15+1 and 19+1, +1 is a space between columns */ /* lease.hostname is char[20] and is always NUL terminated */ #if ENABLE_FEATURE_ASSUME_UNICODE - printf(" %-16s%s%*s", inet_ntoa(addr), lease.hostname, - 20 - (int)unicode_strlen(lease.hostname), ""); + { + char *uni_name = unicode_conv_to_printable_fixedwidth(NULL, lease.hostname, 20); + printf(" %-16s%s", inet_ntoa(addr), uni_name); + free(uni_name); + } #else printf(" %-16s%-20s", inet_ntoa(addr), lease.hostname); #endif |