Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libs/libc/obstack: correctly append null byte at the end of string
obstack_printf and obstack_vprintf should terminate the C string with null byte but lib_vsprintf doesn't do it. It must be done on top of that unless we get unterminated string. This is fix to be consistent with GlibC behavior. This also includes minor tweak to use obstack_1grow directly instead of calling obstack_puts.
- Loading branch information