[EMAIL PROTECTED]:
> > [EMAIL PROTECTED]:
> >> void recipient_list_add(RECIPIENT_LIST *list, long offset,
> >> const char *dsn_orcpt, int dsn_notify,
> >> const char *orig_rcpt, const char *rcpt)
> >
> > You can't change the rcpt argument.
> >
> >> {
> >> int new_avail;
> >>
> >> //MODIFIED SOURCE
> >>
> >> char **host; int *port;
> >> char * userName;
> >> //Here we filter the RECIPIENT ADDRESS and we do a lookup by using P2P
> >> daemon.
> >> userName = strtok(rcpt,"@");
> >
> > What if the result is a null pointer?
> >
> >> if (getAddress((char *)rcpt,(char **)&host,(int *)&port) == 0) {
> >> strcat(userName,"@");
> >
> > You are changing the rcpt argument.
> >
> > Wietse
> >
>
> Why rcpt couldn't be changed? That work for me.
Sorry, you need to learn the basic principles of the C programming
language before you can proceed.
- Understand what "const" means.
- Understand why strcat must not be used unless you can prove with
mathematical certainty that the destination buffer will never be
too small.
Also:
- Understand that LD_PRELOAD cannot override statically linked
functions.
- Understand that Postfix refuses [EMAIL PROTECTED]:port as an email
destination.
Wietse