On 2021-04-14 at 15:29 +0200, Samuel Thibault <[email protected]> 
wrote:
 > Sorry, since I'm at work and thus answering without looking much, I
 > missed that we already had the text length in textSize, which precisely
 > avoids the concerns with using strlen(). That's what I meant we could
 > use.

No problem.

Your suggestion still has the problem with multi-byte character encodings.
textSize holds the text size in bytes, not the number of code points. We
cannot dereve the lengths of the masks from that number.

-- 
Aura
_______________________________________________
This message was sent via the BRLTTY mailing list.
To post a message, send an e-mail to: [email protected]
For general information, go to: http://brltty.app/mailman/listinfo/brltty

Reply via email to