aboutsummaryrefslogtreecommitdiff
path: root/log.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-11-05 09:39:36 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-11-05 09:39:36 +0000
commit15b12f45c69751014f7a96f089ba32a76f97d4a6 (patch)
tree69db86171691ebf56bc9e4010a666a9161dbec90 /log.c
parentserver/client: harden reading of initialization data, and make async (diff)
scan-build: fix a couple of minor warnings from a scan-build run
Diffstat (limited to 'log.c')
-rw-r--r--log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/log.c b/log.c
index 87059351..e046cd79 100644
--- a/log.c
+++ b/log.c
@@ -100,7 +100,7 @@ _sys_log(enum log_class log_class, const char *module,
idx += vsnprintf(&msg[idx], required_len + 1 - idx, fmt, va);
if (sys_errno != 0) {
- idx += snprintf(
+ snprintf(
&msg[idx], required_len + 1 - idx, ": %s", strerror(sys_errno));
}