On Fri Nov 4 07:11:29 2022 +0000, David Kahurani wrote:
Well, this is based on the assumption that the string is null-terminated which means we hit a null character at the end which of course, it not a valid character.
From this calling site it's not clear at all. Maybe helper itself could return this code. Anyway, it seems to me that some more testing is necessary to figure out what's common between those 3 or 4 methods that write plain text data.