From: mmj Date: Thu, 23 Sep 2004 22:30:05 +0000 (+1000) Subject: the last = is the @ X-Git-Tag: RELEASE_1_1_0~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c8e32d127cbf0c263b5cf18339070e760fcda8d;p=thirdparty%2Fmlmmj.git the last = is the @ --- diff --git a/src/mlmmj-bounce.c b/src/mlmmj-bounce.c index 0e19943f..14b8d3e0 100644 --- a/src/mlmmj-bounce.c +++ b/src/mlmmj-bounce.c @@ -112,7 +112,7 @@ void do_probe(const char *listdir, const char *mlmmjsend, const char *addr) from = concatstr(5, listname, "+bounces-", myaddr, "-probe@", listfqdn); - a = strchr(myaddr, '='); + a = strrchr(myaddr, '='); if (!a) { myfree(myaddr); myfree(from); @@ -306,7 +306,7 @@ int main(int argc, char **argv) /* save the filename with '=' before replacing it with '@' */ bfilename = concatstr(3, listdir, "/bounce/", address); - a = strchr(address, '='); + a = strrchr(address, '='); if (!a) exit(EXIT_SUCCESS); /* ignore malformed address */ *a = '@';