From: Pavel TvrdĂ­k Date: Mon, 2 Nov 2015 12:38:43 +0000 (+0100) Subject: rt-attr.c: use strncpy() instead strcpy() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72948cc684105399835b87fee890307b7aba210a;p=thirdparty%2Fbird.git rt-attr.c: use strncpy() instead strcpy() --- 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)