summaryrefslogtreecommitdiffstats
path: root/syslog.c
diff options
context:
space:
mode:
Diffstat (limited to 'syslog.c')
-rw-r--r--syslog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/syslog.c b/syslog.c
index efe20565..2ed83e9f 100644
--- a/syslog.c
+++ b/syslog.c
@@ -95,7 +95,7 @@ val openlog_wrap(val wident, val optmask, val facility)
cnum cfacility = c_num(default_arg(facility, num_fast(LOG_USER)), self);
char *old_ident = ident;
- ident = utf8_dup_to(c_str(wident));
+ ident = utf8_dup_to(c_str(wident, self));
openlog(ident, coptmask, cfacility);
@@ -115,7 +115,7 @@ val syslog_wrapv(val prio, val fmt, struct args *args)
val self = lit("syslog");
val text = formatv(nil, fmt, args);
cnum cprio = c_num(prio, self);
- char *u8text = utf8_dup_to(c_str(text));
+ char *u8text = utf8_dup_to(c_str(text, self));
syslog(cprio, "%s", u8text);
return nil;
}