From: Andi Gutmans Date: Wed, 2 May 2001 22:57:01 +0000 (+0000) Subject: - More strncpy() -> strlcpy() changes. mm_login() doesn't seem to be used X-Git-Tag: php-4.0.6RC1~176 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7c5a45d69ae43c5d3e54cfb2bfefbb7d6f751961;p=php - More strncpy() -> strlcpy() changes. mm_login() doesn't seem to be used though. --- 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