Revert "Replace use of snprintf with xsprintf"

This reverts commit a7419dbc59.

_All_ changes in that commit were wrong.

Fixes #8211.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2018-02-23 00:13:52 +01:00
parent e8a3144ec4
commit f810b631cd
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -1699,7 +1699,7 @@ static void unit_status_log_starting_stopping_reloading(Unit *u, JobType t) {
format = unit_get_status_message_format(u, t);
DISABLE_WARNING_FORMAT_NONLITERAL;
xsprintf(buf, format, unit_description(u));
snprintf(buf, sizeof buf, format, unit_description(u));
REENABLE_WARNING;
mid = t == JOB_START ? "MESSAGE_ID=" SD_MESSAGE_UNIT_STARTING_STR :