diff --git a/base64/base64.v b/base64/base64.v index 266b1e99c6..6f8c5df43d 100644 --- a/base64/base64.v +++ b/base64/base64.v @@ -44,6 +44,6 @@ fn decode(data string) string { } } str[str_len + 1] = `\0` - return string(str) + return tos(str, str_len+2) }