3 ms·
I ran across an issue with some Win32 API call which took a char pointer and a length, but which terminated the string at the first null char. I forgot which on
by magicalhippo 7y ago
I ran across an issue with some Win32 API call which took a char pointer and a length, but which terminated the string at the first null char. I forgot which one it is, but it was related to text boxes (edits) somehow.
- kstenerud 7y agoPassing strings with embedded NULs would probably break the API in other ways anyway. I'm glad they guarded against that.