Skip to content

Commit a441f63

Browse files
committed
Fix utf8 encode resize
1 parent 9411971 commit a441f63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cpp/encoding/Encodings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ Array<uint8_t> cpp::encoding::Utf8::encode(const String& string)
260260
k += encode(p, buffer.slice(k));
261261
}
262262

263-
out->resize(i);
263+
out->resize(k);
264264

265265
return out;
266266
#else

0 commit comments

Comments
 (0)