nuttx/libs/libc/obstack
Karel Kočí c4d8d937d5 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.
2024-08-21 10:21:50 -03:00
..
lib_obstack_alloc.c
lib_obstack_blank.c
lib_obstack_copy.c
lib_obstack_finish.c
lib_obstack_free.c
lib_obstack_grow.c
lib_obstack_init.c
lib_obstack_make_room.c
lib_obstack_malloc.c
lib_obstack_malloc.h
lib_obstack_object_size.c
lib_obstack_printf.c
lib_obstack_room.c
lib_obstack_vprintf.c libs/libc/obstack: correctly append null byte at the end of string 2024-08-21 10:21:50 -03:00
Make.defs