summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-01-18 14:01:01 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-01-18 14:01:01 +0000
commitb58b7b50aa0f6b94702c2daa0337c79b80b11add (patch)
tree4a20379a103454f7d5707526cced9819f6a3cc21 /usr.bin
parent26db0db76992ec2a9b542509603084bbc718aa33 (diff)
string truncation due to sizeof(size)
ok djm markus
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/krl.c4
1 files 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 <sys/types.h>
#include <sys/param.h>
@@ -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, "<INVALID>", sizeof(nts));
+ strlcpy(ts, "<INVALID>", nts);
else {
*ts = '\0';
strftime(ts, nts, "%Y%m%dT%H%M%S", tm);