properly calculate size of buffer

Getting four bytes per packet because we're getting four bytes per packet. 
:expressionless: