revert buf