mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:07:45 +00:00
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.
This commit is contained in:
parent
29ada654b1
commit
91b2af34e1
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ int main(int argc, char** argv)
|
||||||
|
|
||||||
if (decode) {
|
if (decode) {
|
||||||
auto decoded = decode_base64(StringView(buffer));
|
auto decoded = decode_base64(StringView(buffer));
|
||||||
printf("%s\n", String::copy(decoded).characters());
|
fwrite(decoded.data(), sizeof(u8), decoded.size(), stdout);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue