The first bug caught by test_runner! Due to a single-character typo, memset was only ever setting about half of the buffer it was given.
This new libc is mostly from scratch, with *printf() functions provided by Marco Paland and Eyal Rozenberg's tiny printf library, and malloc and friends provided by dlmalloc.