From: Yu Watanabe Date: Mon, 18 Feb 2019 23:30:02 +0000 (+0900) Subject: util: make base64_append() add a whitespace before appending data X-Git-Tag: v242-rc1~283 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebf963c551e1077abaa5e0fa0f330e6d1c23565e;p=thirdparty%2Fsystemd.git util: make base64_append() add a whitespace before appending data Follow-up for 4bb91a950a0f2eae27bb4c7aaff9a87e86ef0c44. --- diff --git a/src/basic/hexdecoct.c b/src/basic/hexdecoct.c index c5987ee1b9e..8aedc0d5836 100644 --- a/src/basic/hexdecoct.c +++ b/src/basic/hexdecoct.c @@ -640,7 +640,7 @@ int base64_append( return base64_append_width(prefix, plen, "\n", indent, p, l, width - indent - 1); else /* 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) {