diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-11-05 09:39:36 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-11-05 09:39:36 +0000 |
| commit | 15b12f45c69751014f7a96f089ba32a76f97d4a6 (patch) | |
| tree | 69db86171691ebf56bc9e4010a666a9161dbec90 /log.c | |
| parent | server/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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)); } |
