Skip to content

Commit f5492fe

Browse files
committed
Revert bad fix in Utf8Codex.cpp
1 parent 27a959d commit f5492fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Common/Codex/Utf8Codex.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ namespace utf8
513513
size_t destWriteMaxBytes = cbDest - 1; // leave room for null terminator
514514
size_t result = EncodeIntoImpl<encoding>(dest, destWriteMaxBytes, source, cchSource);
515515
dest[result] = 0;
516-
return result + 1;
516+
return result;
517517
}
518518

519519
template

0 commit comments

Comments
 (0)