avoids using buf as input and output param

There's a couple of `HOKUYO_EXCEPT` calls that uses `buf`, which gets re-declared here.