Fixed \n on buf[i]