Double-check the data length.  CID #1198852

Which will never happen in reality, because the called functions
never return more than the size of the output buffer
Note recent changes