]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
util: make base64_append() add a whitespace before appending data
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 18 Feb 2019 23:30:02 +0000 (08:30 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 19 Feb 2019 21:16:11 +0000 (06:16 +0900)
Follow-up for 4bb91a950a0f2eae27bb4c7aaff9a87e86ef0c44.

src/basic/hexdecoct.c

index c5987ee1b9e5d67700e582ec1c0d5d9e80462884..8aedc0d5836ba83c62e198ef3e8fbc98f27d36a1 100644 (file)
@@ -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) {