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:
+1
-1
@@ -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 :
|
||||
|
||||
Reference in New Issue
Block a user