Use sizeof(*buf) instead of sizeof(int16_t).

The type is unlikely to change, but a bit more explicit and neater
still.