diff --git a/vlib/encoding/base64/base64.c.v b/vlib/encoding/base64/base64.c.v index 72055843d0..02053cda3e 100644 --- a/vlib/encoding/base64/base64.c.v +++ b/vlib/encoding/base64/base64.c.v @@ -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 ''