char_buffer.c updated