Author: des
Date: Tue Jan 10 08:08:49 2017
New Revision: 311863
URL: https://svnweb.freebsd.org/changeset/base/311863

Log:
  MFH (r267371, r297754, r299520): nits and style

Modified:
  stable/10/lib/libfetch/fetch.3
  stable/10/lib/libfetch/ftp.c
  stable/10/lib/libfetch/http.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/lib/libfetch/fetch.3
==============================================================================
--- stable/10/lib/libfetch/fetch.3      Tue Jan 10 07:50:21 2017        
(r311862)
+++ stable/10/lib/libfetch/fetch.3      Tue Jan 10 08:08:49 2017        
(r311863)
@@ -783,27 +783,27 @@ library first appeared in
 The
 .Nm fetch
 library was mostly written by
-.An Dag-Erling Sm\(/orgrav Aq d...@freebsd.org
+.An Dag-Erling Sm\(/orgrav Aq Mt d...@freebsd.org
 with numerous suggestions and contributions from
-.An Jordan K. Hubbard Aq j...@freebsd.org ,
-.An Eugene Skepner Aq e...@qub.com ,
-.An Hajimu Umemoto Aq u...@freebsd.org ,
-.An Henry Whincup Aq he...@techiebod.com ,
-.An Jukka A. Ukkonen Aq j...@iki.fi ,
-.An Jean-Fran\(,cois Dockes Aq j...@dockes.org ,
-.An Michael Gmelin Aq free...@grem.de
+.An Jordan K. Hubbard Aq Mt j...@freebsd.org ,
+.An Eugene Skepner Aq Mt e...@qub.com ,
+.An Hajimu Umemoto Aq Mt u...@freebsd.org ,
+.An Henry Whincup Aq Mt he...@techiebod.com ,
+.An Jukka A. Ukkonen Aq Mt j...@iki.fi ,
+.An Jean-Fran\(,cois Dockes Aq Mt j...@dockes.org ,
+.An Michael Gmelin Aq Mt free...@grem.de
 and others.
 It replaces the older
 .Nm ftpio
 library written by
-.An Poul-Henning Kamp Aq p...@freebsd.org
+.An Poul-Henning Kamp Aq Mt p...@freebsd.org
 and
-.An Jordan K. Hubbard Aq j...@freebsd.org .
+.An Jordan K. Hubbard Aq Mt j...@freebsd.org .
 .Pp
 This manual page was written by
-.An Dag-Erling Sm\(/orgrav Aq d...@freebsd.org
+.An Dag-Erling Sm\(/orgrav Aq Mt d...@freebsd.org
 and
-.An Michael Gmelin Aq free...@grem.de .
+.An Michael Gmelin Aq Mt free...@grem.de .
 .Sh BUGS
 Some parts of the library are not yet implemented.
 The most notable

Modified: stable/10/lib/libfetch/ftp.c
==============================================================================
--- stable/10/lib/libfetch/ftp.c        Tue Jan 10 07:50:21 2017        
(r311862)
+++ stable/10/lib/libfetch/ftp.c        Tue Jan 10 08:08:49 2017        
(r311863)
@@ -929,7 +929,7 @@ ftp_authenticate(conn_t *conn, struct ur
                if (*pwd == '\0')
                        pwd = getenv("FTP_PASSWORD");
                if (pwd == NULL || *pwd == '\0') {
-                       if ((logname = getlogin()) == 0)
+                       if ((logname = getlogin()) == NULL)
                                logname = FTP_ANONYMOUS_USER;
                        if ((len = snprintf(pbuf, MAXLOGNAME + 1, "%s@", 
logname)) < 0)
                                len = 0;

Modified: stable/10/lib/libfetch/http.c
==============================================================================
--- stable/10/lib/libfetch/http.c       Tue Jan 10 07:50:21 2017        
(r311862)
+++ stable/10/lib/libfetch/http.c       Tue Jan 10 08:08:49 2017        
(r311863)
@@ -875,7 +875,7 @@ http_parse_mtime(const char *p, time_t *
        char locale[64], *r;
        struct tm tm;
 
-       strncpy(locale, setlocale(LC_TIME, NULL), sizeof(locale));
+       strlcpy(locale, setlocale(LC_TIME, NULL), sizeof(locale));
        setlocale(LC_TIME, "C");
        r = strptime(p, "%a, %d %b %Y %H:%M:%S GMT", &tm);
        /*
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to