ecomaikgolf / alma

toy kernel written in C++ for x86-64 machines with the mere purpose of learning OS development
8 stars 1 forks source link

`scanf` can't finish when buffer is full #57

Open ecomaikgolf opened 2 years ago

ecomaikgolf commented 2 years ago

char buffer[4];

If we entered 4 chars with scanf (one reserved for \0) we can't press enter to finish as \n doesn't fit