~ubuntu-branches/ubuntu/precise/exim4/precise-security

« back to all changes in this revision

Viewing changes to src/pdkim/pdkim.c

  • Committer: Bazaar Package Importer
  • Author(s): Artur Rona
  • Date: 2010-07-25 02:00:42 UTC
  • mfrom: (2.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100725020042-bk1uw1p7ysmnsn9f
Tags: 4.72-1ubuntu1
* Merge with Debian unstable (LP: #609620). Remaining changes:
  + debian/patches/71_exiq_grep_error_on_messages_without_size.dpatch:
    Improve handling of broken messages when "exim4 -bp" (mailq) reports
    lines without size info.
  + Don't declare a Provides: default-mta; in Ubuntu, we want postfix to be
    the default.
  + debian/control: Change build dependencies to MySQL 5.1.
  + debian/{control,rules}: add and enable hardened build for PIE
    (Closes: #542726).

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21
21
 */
22
22
 
23
 
/* $Cambridge: exim/exim-src/src/pdkim/pdkim.c,v 1.12 2009/12/07 13:05:07 tom Exp $ */
 
23
/* $Cambridge: exim/exim-src/src/pdkim/pdkim.c,v 1.14 2010/05/29 19:14:06 nm4 Exp $ */
24
24
 
25
25
#include <stdlib.h>
26
26
#include <stdio.h>
211
211
  p->allocated=(len+1);
212
212
  p->len=len;
213
213
  if (cstr) strcpy(p->str,cstr);
 
214
  else p->str[p->len] = '\0';
214
215
  return p;
215
216
}
216
217
char *pdkim_strncat(pdkim_str *str, char *data, int len) {
1304
1305
    #ifdef PDKIM_DEBUG
1305
1306
    if (ctx->debug_stream)
1306
1307
      fprintf(ctx->debug_stream,
1307
 
        "\nPDKIM <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n");
 
1308
        "PDKIM <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n");
1308
1309
    #endif
1309
1310
  }
1310
1311