ca-cas.c: Avoid reading past end of buffer

The size parameter passed to the read function was incorrectly calculated.

Signed-off-by: Morten Hustveit <morten.hustveit@gmail.com>