stuff
This commit is contained in:
@@ -18,7 +18,7 @@ char* readline(const char *prompt) {
|
||||
|
||||
char* result = malloc(RESULT_SIZE);
|
||||
memset(result, 0, RESULT_SIZE);
|
||||
for (int i = 0; i < RESULT_SIZE; ++i) {
|
||||
for (int i = 0; i < RESULT_SIZE - 1; ++i) {
|
||||
result[i] = getc();
|
||||
kprint(&result[i]);
|
||||
if (result[i] == '\n') {
|
||||
|
||||
Reference in New Issue
Block a user