Use math rather than iteration when the desired sbuf size is larger than SBUF_MAXEXTENDSIZE.
Use math rather than iteration when the desired sbuf size is larger than
SBUF_MAXEXTENDSIZE.

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase