Changeset 96

Show
Ignore:
Timestamp:
05/11/05 12:01:27
Author:
ben
Message:

Finish when the data finishes.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openpgpsdk/trunk/src/compress.c

    r69 r96  
    2929    ops_parser_content_t content; 
    3030    unsigned length=*plength; 
     31 
     32    if(arg->region->indeterminate && arg->inflate_ret == Z_STREAM_END 
     33       && arg->stream.next_out == &arg->out[arg->offset]) 
     34        return OPS_R_EOF; 
    3135 
    3236    if(arg->region->length_read == arg->region->length) 
  • openpgpsdk/trunk/src/packet-parse.h

    r69 r96  
    2525    OPS_R_OK            =0,     /*!< success */ 
    2626    OPS_R_EOF           =1,     /*!< reached end of file, no data has been returned */ 
    27     OPS_R_EARLY_EOF     =2,     /*!< could not read the requested amount of bytes and OPS_RETURN_LENGTH was not set */ 
     27    OPS_R_EARLY_EOF     =2,     /*!< could not read the requested amount of bytes and OPS_RETURN_LENGTH was not set and at least 1 byte was read */ 
    2828    OPS_R_PARTIAL_READ  =3,     /*!< if OPS_RETURN_LENGTH is set and the buffer was not filled */ 
    2929    };