X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fmts.c;h=7941e090dc4c0eb2b39bf93f091f918e5fff2570;hb=0be3869967792be6b129fc34e8f72a88fc3352bb;hp=551fd1fed97277d6dcac1681bbc29bb6b2725443;hpb=dee387b53ab0d42922f857b60d6f980c9e79d16f;p=mmh diff --git a/sbr/mts.c b/sbr/mts.c index 551fd1f..7941e09 100644 --- a/sbr/mts.c +++ b/sbr/mts.c @@ -3,10 +3,15 @@ * mts.c -- definitions for the mail transport system * * $Id$ + * + * This code is Copyright (c) 2002, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ #include /* for snprintf() */ #include +#include #define nmhetcdir(file) NMHETCDIR#file @@ -23,8 +28,6 @@ #define NOTOK (-1) #define OK 0 -extern int errno; - /* * static prototypes */ @@ -269,8 +272,8 @@ tailor_value (char *s) *bp = 0; len = strlen (buffer) + 1; - if ((bp = malloc (len))) - memcpy (bp, buffer, len); + bp = mh_xmalloc (len); + memcpy (bp, buffer, len); return bp; }