~ubuntu-branches/ubuntu/dapper/clamav/dapper

« back to all changes in this revision

Viewing changes to libclamav/mbox.c

  • Committer: Bazaar Package Importer
  • Author(s): Stephen Gran
  • Date: 2006-01-10 02:55:18 UTC
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20060110025518-92bhgfe911byl3bc
Tags: upstream-0.88
ImportĀ upstreamĀ versionĀ 0.88

Show diffs side-by-side

added added

removed removed

Lines of Context:
1806
1806
                                                        if(!isspace(data[0]))
1807
1807
                                                                break;
1808
1808
 
 
1809
                                                        if(data[1] == '\0') {
 
1810
                                                                /*
 
1811
                                                                 * Broken message: the
 
1812
                                                                 * blank line at the end
 
1813
                                                                 * of the headers isn't blank -
 
1814
                                                                 * it contains a space
 
1815
                                                                 */
 
1816
                                                                cli_dbgmsg("Multipart %d: headers not terminated by blank line\n",
 
1817
                                                                        multiparts);
 
1818
                                                                inhead = FALSE;
 
1819
                                                                break;
 
1820
                                                        }
 
1821
 
1809
1822
                                                        ptr = cli_realloc(fullline,
1810
1823
                                                                strlen(fullline) + strlen(data) + 1);
1811
1824
 
3465
3478
                                                return -1;
3466
3479
                                        }
3467
3480
                                        nblanks = 0;
3468
 
                                        while(fgets(buffer, sizeof(buffer), fin) != NULL)
 
3481
                                        while(fgets(buffer, sizeof(buffer) - 1, fin) != NULL)
3469
3482
                                                /*
3470
3483
                                                 * Ensure that trailing newlines
3471
3484
                                                 * aren't copied