Commit 12a0565a authored by Jim Blandy's avatar Jim Blandy
Browse files

* movemail.c [MAIL_USE_POP] (main): Don't use non-portable

	string-handling functions.
parent 879c0d9f
......@@ -140,11 +140,14 @@ main (argc, argv)
}
#ifdef MAIL_USE_POP
if (!bcmp (inname, "po:", 3))
if (!strncmp (inname, "po:", 3))
{
int status; char *user;
user = (char *) rindex (inname, ':') + 1;
for (user = &inname[strlen (inname) - 1]; user >= inname; user--)
if (*user == ':')
break;
status = popmail (user, outname);
exit (status);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment