~ubuntu-branches/ubuntu/lucid/seamonkey/lucid-security

« back to all changes in this revision

Viewing changes to mailnews/mime/src/mimethtm.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Fabien Tassin
  • Date: 2008-07-29 21:29:02 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080729212902-spm9kpvchp9udwbw
Tags: 1.1.11+nobinonly-0ubuntu1
* New security upstream release: 1.1.11 (LP: #218534)
  Fixes USN-602-1, USN-619-1, USN-623-1 and USN-629-1
* Refresh diverged patch:
  - update debian/patches/80_security_build.patch
* Fix FTBFS with missing -lfontconfig
  - add debian/patches/11_fix_ftbfs_with_fontconfig.patch
  - update debian/patches/series
* Build with default gcc (hardy: 4.2, intrepid: 4.3)
  - update debian/rules
  - update debian/control

Show diffs side-by-side

added added

removed removed

Lines of Context:
116
116
    
117
117
    if (base_hdr)
118
118
    {
119
 
      char *buf = (char *) PR_MALLOC(strlen(base_hdr) + 20);
 
119
      PRUint32 buflen = strlen(base_hdr) + 20;
 
120
      char *buf = (char *) PR_MALLOC(buflen);
120
121
      const char *in;
121
122
      char *out;
122
123
      if (!buf)
129
130
        mail header to be wrapped reasonably.  Creators are supposed
130
131
        to insert whitespace every 40 characters or less.
131
132
      */
132
 
      PL_strcpy(buf, "<BASE HREF=\"");
 
133
      PL_strncpyz(buf, "<BASE HREF=\"", buflen);
133
134
      out = buf + strlen(buf);
134
135
      
135
136
      for (in = base_hdr; *in; in++)