1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-25 01:34:28 +03:00

util: make base64_append() add a whitespace before appending data

Follow-up for 4bb91a950a.
This commit is contained in:
Yu Watanabe 2019-02-19 08:30:02 +09:00
parent 2dcaf38020
commit ebf963c551

View File

@ -640,7 +640,7 @@ int base64_append(
return base64_append_width(prefix, plen, "\n", indent, p, l, width - indent - 1); return base64_append_width(prefix, plen, "\n", indent, p, l, width - indent - 1);
else else
/* leave plen on the left, keep last column free */ /* leave plen on the left, keep last column free */
return base64_append_width(prefix, plen, NULL, plen, p, l, width - plen - 1); return base64_append_width(prefix, plen, " ", plen, p, l, width - plen - 1);
} }
static int unbase64_next(const char **p, size_t *l) { static int unbase64_next(const char **p, size_t *l) {