mirror of
https://github.com/limine-bootloader/limine
synced 2025-01-21 03:52:04 +03:00
Fix gets bug
This commit is contained in:
parent
5082a450a0
commit
48ce450aa1
@ -21,9 +21,9 @@ void gets(char *buf, size_t limit) {
|
||||
text_write(&c, 1);
|
||||
}
|
||||
continue;
|
||||
case '\n':
|
||||
case '\r':
|
||||
buf[i] = 0;
|
||||
text_write(&c, 1);
|
||||
text_write("\n", 1);
|
||||
return;
|
||||
}
|
||||
if (i < limit-1) {
|
||||
|
Loading…
Reference in New Issue
Block a user