summaryrefslogtreecommitdiff
path: root/ext/imap/php_imap.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/imap/php_imap.c')
-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