aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/localedef/wide.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/localedef/wide.c')
-rw-r--r--usr.bin/localedef/wide.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/localedef/wide.c b/usr.bin/localedef/wide.c
index 5d5f5a6db276..808239620dbb 100644
--- a/usr.bin/localedef/wide.c
+++ b/usr.bin/localedef/wide.c
@@ -598,7 +598,7 @@ to_mb(char *mb, wchar_t wc)
int rv;
if ((rv = _tomb(mb, wc)) < 0) {
- errf(widemsg);
+ warn("%s", widemsg);
free(widemsg);
widemsg = NULL;
}
@@ -614,7 +614,7 @@ to_mb_string(const wchar_t *wcs)
mbs = malloc((wcslen(wcs) * mb_cur_max) + 1);
if (mbs == NULL) {
- errf("out of memory");
+ warn("out of memory");
return (NULL);
}
ptr = mbs;