Fix for typo

Hey,

I couldn't get this working, getting an error after binding. After some investigation, it seems there was a typo. The variable $length was used where $bufLength should have been used ($length wasn't declared at all).

I've updated the code in my repo.

Thanks

Colm