libluna: Fix off-by-one size calculation in Base64::decode_string()
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
apio 2023-08-24 12:06:01 +02:00
parent 798a6d63aa
commit 0f377e7289
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -161,6 +161,6 @@ namespace Base64
u8 nul_byte = '\0';
TRY(buf.append_data(&nul_byte, 1));
return String { (char*)buf.release_data(), buf.size() };
return String { (char*)buf.release_data(), buf.size() - 1 };
}
}