Pad the input buffer whenever sync is used, not just if the noerror flag     is also set. Change osync to not to tack on an empty block if the input buffer is null,     or an even multiple of the blocksize. Also change osync to pad the output with nulls/spaces depending whether    this is a block-oriented conversion or not (same as sync).
Pad the input buffer whenever sync is used, not just if the noerror flag
    is also set.
Change osync to not to tack on an empty block if the input buffer is null,
    or an even multiple of the blocksize.
Also change osync to pad the output with nulls/spaces depending whether
   this is a block-oriented conversion or not (same as sync).

PR:		3818

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