X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/93cf33c07eed0e56b4f3a0d1c07ff183ac1510ef..89b640fbfe885673d18b9232f2b8a60ce173a897:/uip/replsbr.c diff --git a/uip/replsbr.c b/uip/replsbr.c index 7f0f5237..613b3d9d 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");