Github user tschoening commented on the issue:
https://github.com/apache/logging-log4cxx/pull/4
It's a string by definition so I guess we can ignore problems with
terminating `0` within the string before `requested` has been reached.
Additionally, `x * converted` should be wrong as well because how many bytes
one multibyte character spans depends on the current locale, right? So sounds
safe to assume in case of success that simply all requested characters/bytes
have been processed. This is reported to work in the linked issues as well:
> Then I modified the "in.position(in.position() + converted);" to
"in.position(in.position() + requested);"
https://issues.apache.org/jira/browse/LOGCXX-399?focusedCommentId=13969295&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-13969295
---