In the case you listed - you already started with a weak acid, now use a strong base to neutralize it partially.
Do you understand what is a base and what is an acid in the buffer solution?
Let's say you prepared a buffer solution mixing acetic acid and NaOH. What is the acid in this buffer, and what is the base in this buffer solution?