http://bugs.winehq.org/show_bug.cgi?id=19839
--- Comment #10 from LIGHTNING UK! lightning_uk@imgburn.com 2009-08-26 04:10:40 --- (In reply to comment #9)
Yes, precisely. So, since size is _not_ greater than len (the length of infoPtr->parts[0].text), the else branch is taken, and size - 1 characters are copied to the output buffer, and size - 1 is returned. Make sense?
Yup, so long as the potential case where size == 0 is handled somewhere else higher up. If size < 2, the return value should in theory always be 0.