diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-05-08 18:33:53 +0000 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-05-29 18:03:26 +0000 |
| commit | fcb072cdbfa87ffff0a5c94c29217a3235bbe8f3 (patch) | |
| tree | 0d3c72feeeda933bddb93525dc09c82c53ca98ab /lib/command_match.c | |
| parent | eab4a5c2d06d6a9b44d6d3333b5c3f2d74e95da4 (diff) | |
lib, zebra: remove uses of strncpy
This removes the last removable uses of strncpy in FRR.
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/command_match.c')
| -rw-r--r-- | lib/command_match.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/command_match.c b/lib/command_match.c index 8b34d1e3eb..9456e1585a 100644 --- a/lib/command_match.c +++ b/lib/command_match.c @@ -723,7 +723,7 @@ static enum match_type match_ipv4(const char *str) if (str - sp > 3) return no_match; - strncpy(buf, sp, str - sp); + memcpy(buf, sp, str - sp); if (atoi(buf) > 255) return no_match; @@ -774,7 +774,7 @@ static enum match_type match_ipv4_prefix(const char *str) if (str - sp > 3) return no_match; - strncpy(buf, sp, str - sp); + memcpy(buf, sp, str - sp); if (atoi(buf) > 255) return no_match; |
