c-compiler compatibility
- retyped buffer to unsigned char (was getting FFAC instead of 00AC)