summaryrefslogtreecommitdiffstats
path: root/src/logging.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/logging.c')
-rw-r--r--src/logging.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/logging.c b/src/logging.c
index a6aa7eba..9b37bf53 100644
--- a/src/logging.c
+++ b/src/logging.c
@@ -335,7 +335,7 @@ static void _output(struct log_target *target, unsigned int subsys,
if (target->use_color) {
c_subsys = color(subsys);
if (c_subsys) {
- ret = snprintf(buf + offset, rem, c_subsys);
+ ret = snprintf(buf + offset, rem, "%s", c_subsys);
if (ret < 0)
goto err;
OSMO_SNPRINTF_RET(ret, rem, offset, len);