From 91b2af34e121f56b686b05fb535eed91b53297a6 Mon Sep 17 00:00:00 2001 From: BenJilks Date: Sun, 18 Oct 2020 14:35:55 +0000 Subject: [PATCH] base64: Fix not outputting all decoded data It would use printf to output the data, so if it contains a null terminator it'll stop. --- Userland/base64.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/base64.cpp b/Userland/base64.cpp index 03f11a78e2..f8e0fc6ff9 100644 --- a/Userland/base64.cpp +++ b/Userland/base64.cpp @@ -71,7 +71,7 @@ int main(int argc, char** argv) if (decode) { auto decoded = decode_base64(StringView(buffer)); - printf("%s\n", String::copy(decoded).characters()); + fwrite(decoded.data(), sizeof(u8), decoded.size(), stdout); return 0; }