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:
parent
31fe02de8c
commit
87029e5707
@ -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 ''
|
||||
|
Loading…
Reference in New Issue
Block a user