diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2020-04-23 20:27:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-23 20:27:26 +0200 |
| commit | c334a16ef105b7b187943db177ed7623b01e79ba (patch) | |
| tree | 79aa1a7def3eadc711549e9b0e81a773ca5fa569 /lib/netns_linux.c | |
| parent | e17316e56ba830e1cab0c4f382af7676a7bf979a (diff) | |
| parent | 08808541857dc78edd5bfd70f776bfbe58b44051 (diff) | |
Merge pull request #6262 from qlyoung/remove-sprintf
Diffstat (limited to 'lib/netns_linux.c')
| -rw-r--r-- | lib/netns_linux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/netns_linux.c b/lib/netns_linux.c index 4d4376250f..98f359401e 100644 --- a/lib/netns_linux.c +++ b/lib/netns_linux.c @@ -431,7 +431,7 @@ char *ns_netns_pathname(struct vty *vty, const char *name) /* relevant pathname */ char tmp_name[PATH_MAX]; - snprintf(tmp_name, PATH_MAX, "%s/%s", NS_RUN_DIR, name); + snprintf(tmp_name, sizeof(tmp_name), "%s/%s", NS_RUN_DIR, name); result = realpath(tmp_name, pathname); } |
