mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-20 21:56:21 +00:00
Moved string termination out of main loop
This commit is contained in:
@@ -193,6 +193,10 @@ ui_get_char(char *input, int *size)
|
||||
ui_input_nonblocking(FALSE);
|
||||
}
|
||||
|
||||
if (ch == '\n') {
|
||||
input[*size++] = '\0';
|
||||
}
|
||||
|
||||
return (ch != '\n');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user