Changed tempBuffer initialisation.

Since tempBuffer is only ever 8 bytes, initialise it when the constructor is called then only write/read the amount of byte needed from/to it.
Merge remote-tracking branch 'origin/patch-1'