From 7c5a45d69ae43c5d3e54cfb2bfefbb7d6f751961 Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Wed, 2 May 2001 22:57:01 +0000 Subject: [PATCH] - More strncpy() -> strlcpy() changes. mm_login() doesn't seem to be used though. --- ext/imap/php_imap.c | 12 ++++++------ 1 file 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 -- 2.50.1