Luna/kernel/src/std
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
..
libgen.cpp Kernel: Copy strrchr, dirname and basename over from libc 2022-10-16 14:36:25 +02:00
stdio.cpp Kernel, libc: Fix a big bug in printf() 2022-10-30 09:53:23 +01:00
stdlib.cpp Kernel: enable -Wconversion 2022-10-06 17:13:34 +02:00
string.cpp Kernel: move over the mem* functions from libc 2022-10-22 19:04:35 +02:00