Fix pthread_create(), and pass the buffer.