summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-11-02 22:44:36 -0600
committerGitHub <noreply@github.com>2016-11-02 22:44:36 -0600
commitb23f2b72bfad53e4420ac661d1771801fc2003f3 (patch)
tree288e2a20228ce10d387737c84bd74e6d2989e027 /src/core
parent7fa6328cc447a4a834ebc8d68ae6c335f4c9c9d3 (diff)
parente02c6135602bef7de81d7736d5c0959d45d5085c (diff)
Merge pull request #4546 from keszybz/xsprintf-revert
xsprintf revert
Diffstat (limited to 'src/core')
-rw-r--r--src/core/unit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/unit.c b/src/core/unit.c
index 463e6d6a62..e664e23892 100644
--- a/src/core/unit.c
+++ b/src/core/unit.c
@@ -1472,7 +1472,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 ? SD_MESSAGE_UNIT_STARTING :