notes_merge_commit(): do not pass temporary buffer to other function