Commit dffc8df3 authored by gabime's avatar gabime

Merge branch 'v1.x' of https://github.com/gabime/spdlog into v1.x

parents 330d491e 2d8c4b1c
......@@ -59,7 +59,8 @@ protected:
payload = msg.payload;
}
::syslog(syslog_prio_from_level(msg), "%s", payload.data());
int length = std::min<std::common_type<int, std::size_t>::type>(std::numeric_limits<int>::max(), payload.size());
::syslog(syslog_prio_from_level(msg), "%.*s", length, payload.data());
}
void flush_() override {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment