Add a new function buffer_add_n(), and the corresponding