]> granicus.if.org Git - php/commitdiff
- More strncpy() -> strlcpy() changes. mm_login() doesn't seem to be used
authorAndi Gutmans <andi@php.net>
Wed, 2 May 2001 22:57:01 +0000 (22:57 +0000)
committerAndi Gutmans <andi@php.net>
Wed, 2 May 2001 22:57:01 +0000 (22:57 +0000)
  though.

ext/imap/php_imap.c

index 53486dc35e3ef44e740b628c55ddf024aec05868..649406a56088c0f6f0bef5a4425636c430647ba7 100644 (file)
@@ -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