0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-31 22:21:54 +00:00

rt-attr.c: use strncpy() instead strcpy()

This commit is contained in:
Pavel Tvrdík 2015-11-02 13:38:43 +01:00
parent 10e1e8144d
commit 72948cc684

View File

@ -763,7 +763,7 @@ opaque_format(struct adata *ad, byte *buf, uint size)
{
if (buf > bound)
{
strcpy(buf, " ...");
strncpy(buf, " ...", 5);
return;
}
if (i)