Use size_t as the type for the buffer size instead of unsigned long long.