Luna/kernel
apio 8d46c9bbe2 Kernel, libc: Fix a big bug in printf()
Every time printf flushes the buffer to us in sprintf() or snprintf(), we call strncat to append the data.

But we want to start from the beginning in the first flush. What if there was data already there?
Well, we just append to the old data. Which is not good, and breaks snprintf()'s maximum size policy.

This fix sets the first byte of str to NULL, to avoid this.
2022-10-30 09:53:23 +01:00
..
include Kernel: Add the clock_gettime syscall, which replaces clock as it can be used for more stuff 2022-10-30 09:07:59 +01:00
src Kernel, libc: Fix a big bug in printf() 2022-10-30 09:53:23 +01:00
Makefile Fix kernel/Makefile 2022-10-24 20:52:11 +02:00
moon.ld Start the call stack with a null RBP before calling _start 2022-09-18 17:03:29 +02:00