Author: delphij
Date: Wed Dec 20 07:18:07 2017
New Revision: 327019
URL: https://svnweb.freebsd.org/changeset/base/327019

Log:
  MFC r326562: Use strlcpy().

Modified:
  stable/10/libexec/ftpd/ftpd.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/libexec/ftpd/ftpd.c
==============================================================================
--- stable/10/libexec/ftpd/ftpd.c       Wed Dec 20 07:16:41 2017        
(r327018)
+++ stable/10/libexec/ftpd/ftpd.c       Wed Dec 20 07:18:07 2017        
(r327019)
@@ -1064,7 +1064,7 @@ user(char *name)
                }
        }
        if (logging)
-               strncpy(curname, name, sizeof(curname)-1);
+               strlcpy(curname, name, sizeof(curname));
 
        pwok = 0;
 #ifdef USE_PAM
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to