summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2001-05-02 22:57:01 +0000
committerAndi Gutmans <andi@php.net>2001-05-02 22:57:01 +0000
commit7c5a45d69ae43c5d3e54cfb2bfefbb7d6f751961 (patch)
treefce6f9605fff7c88e5649c398250609a3c074acd
parent8975186810807ae4275ced6db70bb67ae9b2b75a (diff)
downloadphp-git-7c5a45d69ae43c5d3e54cfb2bfefbb7d6f751961.tar.gz
- More strncpy() -> strlcpy() changes. mm_login() doesn't seem to be used
though.
-rw-r--r--ext/imap/php_imap.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c
index 53486dc35e..649406a560 100644
--- a/ext/imap/php_imap.c
+++ b/ext/imap/php_imap.c
@@ -4305,19 +4305,19 @@ void mm_login(NETMBX *mb, char *user, char *pwd, long trial)
#if HAVE_IMSP
if (*mb->service && strcmp(mb->service, "imsp") == 0) {
if (*mb->user) {
- strncpy(user, mb->user, MAILTMPLEN);
+ strlcpy(user, mb->user, MAILTMPLEN);
} else {
- strncpy(user, imsp_user, MAILTMPLEN);
+ strlcpy(user, imsp_user, MAILTMPLEN);
}
- strncpy (pwd, imsp_password, MAILTMPLEN);
+ strlcpy (pwd, imsp_password, MAILTMPLEN);
} else {
#endif
if (*mb->user) {
- strncpy (user,mb->user, MAILTMPLEN);
+ strlcpy (user,mb->user, MAILTMPLEN);
} else {
- strncpy (user, IMAPG(imap_user), MAILTMPLEN);
+ strlcpy (user, IMAPG(imap_user), MAILTMPLEN);
}
- strncpy (pwd, IMAPG(imap_password), MAILTMPLEN);
+ strlcpy (pwd, IMAPG(imap_password), MAILTMPLEN);
#if HAVE_IMSP
}
#endif