diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-08-14 13:48:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-14 13:48:15 +0200 |
commit | 4354a8052c1c91597151c67263afdfcfc0ca98ba (patch) | |
tree | eae1fd1fa945d9301c9d68767bb08af580adc4ae /vtysh | |
parent | Merge pull request #2833 from opensourcerouting/assorted-fixes (diff) | |
parent | snapcraft: Add new staticd to snap package (diff) | |
download | frr-4354a8052c1c91597151c67263afdfcfc0ca98ba.tar.xz frr-4354a8052c1c91597151c67263afdfcfc0ca98ba.zip |
Merge pull request #2823 from opensourcerouting/snap-staticd
Updates to snap package to support staticd
Diffstat (limited to 'vtysh')
-rw-r--r-- | vtysh/vtysh_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vtysh/vtysh_main.c b/vtysh/vtysh_main.c index 7d882620e..86fa62f47 100644 --- a/vtysh/vtysh_main.c +++ b/vtysh/vtysh_main.c @@ -356,7 +356,7 @@ int main(int argc, char **argv, char **env) break; case OPTION_CONFDIR: ditch_suid = 1; /* option disables SUID */ - strlcpy(sysconfdir, optarg, sizeof(sysconfdir)); + snprintf(sysconfdir, sizeof(sysconfdir), "%s/", optarg); break; case 'N': if (strchr(optarg, '/') || strchr(optarg, '.')) { |