~ubuntu-branches/ubuntu/lucid/clamav/lucid-updates

« back to all changes in this revision

Viewing changes to libclamav/mspack.c

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-10-11 09:33:08 UTC
  • mfrom: (83.1.2 lucid-proposed)
  • Revision ID: james.westby@ubuntu.com-20101011093308-28sacta5j2er27zh
Tags: 0.96.3+dfsg-2ubuntu1.0.10.04.1
Microversion update to 0.96.3 for Lucid (LP: #653738)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1947
1947
      if (window_posn == qtm->window_size) {
1948
1948
        /* flush all currently stored data */
1949
1949
        i = (qtm->o_end - qtm->o_ptr);
 
1950
        if(i <= 0)
 
1951
            break;
1950
1952
        if (qtm->wflag && (ret = mspack_write(qtm->ofd, qtm->o_ptr, i, qtm->file)) != CL_SUCCESS) {
1951
1953
          return qtm->error = ret;
1952
1954
        }
1961
1963
 
1962
1964
  } /* while (more bytes needed) */
1963
1965
 
1964
 
  if (out_bytes) {
 
1966
  if (out_bytes > 0) {
1965
1967
    i = (int) out_bytes;
1966
1968
    if (qtm->wflag && (ret = mspack_write(qtm->ofd, qtm->o_ptr, i, qtm->file)) != CL_SUCCESS) {
1967
1969
      return qtm->error = ret;