mirror of
https://github.com/Tha14/toxic.git
synced 2025-07-02 12:06:45 +02:00
this was right
This commit is contained in:
@ -136,7 +136,7 @@ static void prompt_onKey(ToxWindow *self, Tox *m, wint_t key)
|
||||
|
||||
/* Add printable characters to line */
|
||||
else if (isprint(key)) {
|
||||
if (prompt_buf_pos <= MAX_STR_SIZE) {
|
||||
if (prompt_buf_pos < (MAX_STR_SIZE-1)) {
|
||||
mvwaddch(self->window, y, x, key);
|
||||
prompt_buf[prompt_buf_pos++] = key;
|
||||
prompt_buf[prompt_buf_pos] = '\0';
|
||||
|
Reference in New Issue
Block a user