Buffer solutions work on the basis that strong acid (or base) replaces a weak one, or neutralizes weak base (or acid) with formation of salts (which hydrolysis can be neglected because of common ion present in buffer solution).
But in some cases HCl/NaCl can be used as buffer solution though its buffering strength is rather small.