[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug in ZMailer-2.99.14 scheduler
- To: zmailer@nic.funet.fi
- Subject: Re: Bug in ZMailer-2.99.14 scheduler
- From: grossman@informatik.tu-muenchen.de (Rolf Grossmann)
- Date: 05 Jul 1995 19:03:45 GMT
- Distribution: world
- In-reply-to: Thomas Knott's message of 4 Jul 1995 21:43:16 +0200
- Newsgroups: muc.lists.zmailer
- Organization: Inst. fuer Informatik, Technische Univ. Muenchen, Germany
- References: <3tc5kk$kcs@sunsystem5.informatik.tu-muenchen.de>
- Sender: USENET Newssystem <news@informatik.tu-muenchen.de>
Hi,
on 4 Jul 1995 21:43:16 +0200 Thomas Knott wrote
concerning "Bug in ZMailer-2.99.14 scheduler" something like this:
> *** 1.1.1.1 1995/04/25 10:34:04
> --- scheduler/transport.c 1995/07/04 19:19:10
> ***************
> *** 111,117 ****
>
> if (verbose)
> printf(" tscan() path=\"%s\"\n",path);
> ! t_files[t_n++] = path;
> }
> #else
> if (verbose)
> --- 111,120 ----
>
> if (verbose)
> printf(" tscan() path=\"%s\"\n",path);
> !
> ! t_files[t_n] = (char *)emalloc(strlen(path));
^^^^^^^^^^^^
Be careful. This is does not allocate memory for the trailing 0. You'd
better add 1. Also, maybe you'd want to include a function estrdup, that
mimics strdup including error checking.
> ! strcpy(t_files[t_n], path);
> ! t_n++;
> }
> #else
> if (verbose)