summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2006-01-16 00:52:20 +0000
committerRobert Watson <rwatson@FreeBSD.org>2006-01-16 00:52:20 +0000
commitba183db70cb228eaaaf4c5b0090ba2608b05d2c5 (patch)
treed6082b114a7a5e3dd2691a119f68dd20e2b171e1 /lib
parentc21f7757d2dc071efdc8d7512c9bd836a56e0a38 (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libutil/login_times.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libutil/login_times.c b/lib/libutil/login_times.c
index 10e88dd5a5f3..fda358523a67 100644
--- a/lib/libutil/login_times.c
+++ b/lib/libutil/login_times.c
@@ -72,7 +72,7 @@ parse_lt(const char * str)
char buf[64];
/* Make local copy and force lowercase to simplify parsing */
- p = strncpy(buf, str, sizeof buf);
+ p = strlcpy(buf, str, sizeof buf);
buf[sizeof buf - 1] = '\0';
for (i = 0; buf[i]; i++)
buf[i] = (char)tolower(buf[i]);