Changeset 2463 for trunk


Ignore:
Timestamp:
Sep 2, 2011 6:06:55 PM (13 years ago)
Author:
gah
Message:

fixes for broken do_compress

Location:
trunk/src/core
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/RpBuffer.cc

    r2458 r2463  
    321321            int have;
    322322            have = CHUNK - strm.avail_out;
    323 
    324323            /* write to file and check for error */
    325             if (bout.append(out, have)) {
     324            if ((have > 0) && (bout.append(out, have) == 0)) {
    326325                (void)deflateEnd(&strm);
    327326                bout.clear();
    328327                // return Z_ERRNO;
    329                 status.addError("error writing compressed data to temp buffer");
     328                status.addError("error writing compressed data to temp buffer numBytes=%d", have);
    330329                return false;
    331330            }
  • trunk/src/core/RpDict.h

    • Property svn:executable deleted
  • trunk/src/core/RpOutcome.cc

    r1571 r2463  
    8383        _remark.append(bufPtr);
    8484    }
     85    /* fprintf(stderr, "Outcome: %s\n", _remark.c_str()); */
    8586    _status = 1;                /* Set to error */
    8687    if (bufPtr != stackSpace) {
  • trunk/src/core/RpUnits.h

    • Property svn:executable deleted
Note: See TracChangeset for help on using the changeset viewer.