Fixes coverity error about resource leak.

Adds const qualifier to I2C send buffer.
Fixes unchecked return value from Coverity.

Part of issue #2.
Fixes coverity scan complaining about "tainted scalar."

Resolves issue #2.