X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Freplsbr.c;h=613b3d9d7326685537c19d4b435d25823c16807a;hb=9e826e368de450dfdaacf38def352d6314c76b62;hp=7f0f52375ef1b79a0d7721f38dcc65b0b4374207;hpb=3a84d814004fd4557bf4f44952648e9e69bd22a8;p=mmh diff --git a/uip/replsbr.c b/uip/replsbr.c index 7f0f523..613b3d9 100644 --- a/uip/replsbr.c +++ b/uip/replsbr.c @@ -24,7 +24,7 @@ static int dftype=0; static char *badaddrs = NULL; static char *dfhost = NULL; -static struct mailname mq = { NULL }; +static struct mailname mq; static int nodupcheck = 0; /* If set, no check for duplicates */ /* @@ -164,9 +164,7 @@ replout (FILE *inb, char *msg, char *drft, struct msgs *mp, int outputlinelen, if (!mh_strcasecmp(name, cptr->c_name)) { char_read += msg_count; if (! cptr->c_text) { - i = strlen(cptr->c_text = tmpbuf) - 1; - if (tmpbuf[i] == '\n') - tmpbuf[i] = '\0'; + cptr->c_text = tmpbuf; *--savecomp = cptr; tmpbuf = *nxtbuf++; } else { @@ -466,7 +464,7 @@ replfilter (FILE *in, FILE *out, char *filter) rewind (in); lseek (fileno(in), (off_t) 0, SEEK_SET); - switch (pid = vfork ()) { + switch (pid = vfork()) { case NOTOK: adios ("fork", "unable to");