Forgot to adjust type of bufsiz.