From da96eecee65de74ec01e3e14f3483b2920c0e1f0 Mon Sep 17 00:00:00 2001 From: deraadt Date: Sun, 18 Jan 2015 14:01:00 +0000 Subject: [PATCH] string truncation due to sizeof(size) ok djm markus --- usr.bin/ssh/krl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/ssh/krl.c b/usr.bin/ssh/krl.c index b90ffac39e7..4b49e0abf8b 100644 --- a/usr.bin/ssh/krl.c +++ b/usr.bin/ssh/krl.c @@ -14,7 +14,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $OpenBSD: krl.c,v 1.26 2015/01/14 15:02:39 djm Exp $ */ +/* $OpenBSD: krl.c,v 1.27 2015/01/18 14:01:00 deraadt Exp $ */ #include #include @@ -791,7 +791,7 @@ format_timestamp(u_int64_t timestamp, char *ts, size_t nts) t = timestamp; tm = localtime(&t); if (tm == NULL) - strlcpy(ts, "", sizeof(nts)); + strlcpy(ts, "", nts); else { *ts = '\0'; strftime(ts, nts, "%Y%m%dT%H%M%S", tm); -- 2.20.1