~ubuntu-branches/ubuntu/oneiric/firebird2.5/oneiric-security

« back to all changes in this revision

Viewing changes to src/common/classes/TempFile.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Damyan Ivanov
  • Date: 2010-07-27 18:12:34 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100727181234-88lvl2nuord9ysx5
Tags: 2.5.0.26054~ReleaseCandidate3.ds2-1
* New upstream release candidate

* update d/copyright to reflect changes in upstream sources
* drop patches applied/implemented upstream
  + refresh the rest to apply cleanly
* Standards-Version: 3.9.1 (no changes necessary)

Show diffs side-by-side

added added

removed removed

Lines of Context:
269
269
{
270
270
        const char* const buffer = zeros().getBuffer();
271
271
        const size_t bufferSize = zeros().getSize();
272
 
        const size_t newSize = size + delta;
 
272
        const offset_t newSize = size + delta;
273
273
 
274
 
        for (size_t offset = size; offset < newSize; offset += bufferSize)
 
274
        for (offset_t offset = size; offset < newSize; offset += bufferSize)
275
275
        {
276
276
                const size_t length = MIN(newSize - offset, bufferSize);
277
277
                write(offset, buffer, length);