cbufp: fix calculation of csp buffer size