mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-01-03 15:41:54 +00:00
rt-attr.c: use strncpy() instead strcpy()
This commit is contained in:
parent
10e1e8144d
commit
72948cc684
@ -763,7 +763,7 @@ opaque_format(struct adata *ad, byte *buf, uint size)
|
|||||||
{
|
{
|
||||||
if (buf > bound)
|
if (buf > bound)
|
||||||
{
|
{
|
||||||
strcpy(buf, " ...");
|
strncpy(buf, " ...", 5);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (i)
|
if (i)
|
||||||
|
Loading…
Reference in New Issue
Block a user