Fixed buf to string - defined buf