summaryrefslogtreecommitdiffstats
path: root/krl.c
diff options
context:
space:
mode:
authorderaadt@openbsd.org <deraadt@openbsd.org>2015-01-18 15:01:00 +0100
committerDamien Miller <djm@mindrot.org>2015-01-19 14:20:17 +0100
commitf101d8291da01bbbfd6fb8c569cfd0cc61c0d346 (patch)
treebfa96ae618031be510c7ebc6d3f8f6fe1830856f /krl.c
parentupstream commit (diff)
downloadopenssh-f101d8291da01bbbfd6fb8c569cfd0cc61c0d346.tar.xz
openssh-f101d8291da01bbbfd6fb8c569cfd0cc61c0d346.zip
upstream commit
string truncation due to sizeof(size) ok djm markus
Diffstat (limited to 'krl.c')
-rw-r--r--krl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/krl.c b/krl.c
index 3917338f9..721cabdd8 100644
--- a/krl.c
+++ b/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 "includes.h"
@@ -793,7 +793,7 @@ format_timestamp(u_int64_t timestamp, char *ts, size_t nts)
t = timestamp;
tm = localtime(&t);
if (tm == NULL)
- strlcpy(ts, "<INVALID>", sizeof(nts));
+ strlcpy(ts, "<INVALID>", nts);
else {
*ts = '\0';
strftime(ts, nts, "%Y%m%dT%H%M%S", tm);