Luna/libs/libc
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 libc: Add support for the new time functionality in the kernel 2022-10-30 09:08:29 +01:00
src Kernel, libc: Fix a big bug in printf() 2022-10-30 09:53:23 +01:00
crt0.asm Kernel, libc, userspace: Implement command-line arguments (argv) 2022-10-26 18:57:06 +02:00
crti.asm WIP: Add a C Library, let's try to compile a Hosted GCC cross-compiler using this! 2022-10-01 20:59:22 +02:00
crtn.asm WIP: Add a C Library, let's try to compile a Hosted GCC cross-compiler using this! 2022-10-01 20:59:22 +02:00
Makefile Build system: more cflags + stripping 2022-10-18 18:28:28 +02:00