1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

encoding.base64: vfmt base64.c.v

This commit is contained in:
Delyan Angelov 2021-11-28 20:37:08 +02:00
parent 31fe02de8c
commit 87029e5707
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -233,7 +233,7 @@ pub fn encode_str(data string) string {
fn alloc_and_encode(src &byte, len int) string {
if len == 0 {
return ''
}
}
size := 4 * ((len + 2) / 3)
if size <= 0 {
return ''