f1ce0c
reset buffer before copying to prevent some rare cases of invalid output in join and uniq(#1036289)