From 72948cc684105399835b87fee890307b7aba210a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pavel=20Tvrd=C3=ADk?= Date: Mon, 2 Nov 2015 13:38:43 +0100 Subject: [PATCH] rt-attr.c: use strncpy() instead strcpy() --- nest/rt-attr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nest/rt-attr.c b/nest/rt-attr.c index 7fa05d6dc..9095b9233 100644 --- a/nest/rt-attr.c +++ b/nest/rt-attr.c @@ -763,7 +763,7 @@ opaque_format(struct adata *ad, byte *buf, uint size) { if (buf > bound) { - strcpy(buf, " ..."); + strncpy(buf, " ...", 5); return; } if (i) -- 2.47.2