diff options
author | des <des@FreeBSD.org> | 2017-01-10 08:08:49 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2017-01-10 08:08:49 +0000 |
commit | 42311e396495d078a430435e0194cfa99e8f5272 (patch) | |
tree | 5b23122535e42c117cd420c2ddc55b08e9d31054 /lib/libfetch/http.c | |
parent | 6cb45500fc5412ac9eadd58d3d873bfbe8af8548 (diff) | |
download | FreeBSD-src-42311e396495d078a430435e0194cfa99e8f5272.zip FreeBSD-src-42311e396495d078a430435e0194cfa99e8f5272.tar.gz |
MFH (r267371, r297754, r299520): nits and style
Diffstat (limited to 'lib/libfetch/http.c')
-rw-r--r-- | lib/libfetch/http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libfetch/http.c b/lib/libfetch/http.c index ca522a6..f80404d 100644 --- a/lib/libfetch/http.c +++ b/lib/libfetch/http.c @@ -875,7 +875,7 @@ http_parse_mtime(const char *p, time_t *mtime) 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); /* |