]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
rt-attr.c: use strncpy() instead strcpy()
authorPavel Tvrdík <pawel.tvrdik@gmail.com>
Mon, 2 Nov 2015 12:38:43 +0000 (13:38 +0100)
committerPavel Tvrdík <pawel.tvrdik@gmail.com>
Mon, 2 Nov 2015 12:40:49 +0000 (13:40 +0100)
nest/rt-attr.c

index 7fa05d6dc70a5397a931912b1b60ac2a31e8334f..9095b92332466a2fcbaec2c16c7f0a3708f9996a 100644 (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)