summaryrefslogtreecommitdiff
path: root/lib-src/movemail.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1993-05-30 19:26:11 +0000
committerJim Blandy <jimb@redhat.com>1993-05-30 19:26:11 +0000
commit8a49053b9bc5b9d517376acba7ebf86e7c451052 (patch)
tree0a5555a4e594500acbdad05dc42917abb6668fa6 /lib-src/movemail.c
parent27ec6c105f47555143380bec4ffa0895523d281a (diff)
downloademacs-8a49053b9bc5b9d517376acba7ebf86e7c451052.tar.gz
* movemail.c [MAIL_USE_POP] (main): Don't use non-portable
string-handling functions.
Diffstat (limited to 'lib-src/movemail.c')
-rw-r--r--lib-src/movemail.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib-src/movemail.c b/lib-src/movemail.c
index 6a1585fae4a..91f926c3fbc 100644
--- a/lib-src/movemail.c
+++ b/lib-src/movemail.c
@@ -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);
}