summaryrefslogtreecommitdiffstats
path: root/vtysh
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-08-14 13:48:15 +0200
committerGitHub <noreply@github.com>2018-08-14 13:48:15 +0200
commit4354a8052c1c91597151c67263afdfcfc0ca98ba (patch)
treeeae1fd1fa945d9301c9d68767bb08af580adc4ae /vtysh
parentMerge pull request #2833 from opensourcerouting/assorted-fixes (diff)
parentsnapcraft: Add new staticd to snap package (diff)
downloadfrr-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.c2
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, '.')) {