I adapted the demo console example into a chatbox system for my application, and I wondered something.
My buffer has a length of 2001 (2000 characters + the
\0 character), and I provide a buffer size of 2000 to
InputText. But when I tested, I was able to enter more than 2000 characters, which led to a segmentation fault as I tried to enter a 2002nd one.
Is there a way (maybe using a callback) of preventing the user from inputting of a 2001st character if there are already 2000 ?
Thanks in advance for your answer(s)!