diff options
| author | Mark Stapp <mjs@voltanet.io> | 2020-12-21 08:06:32 -0500 |
|---|---|---|
| committer | Mark Stapp <mjs@voltanet.io> | 2020-12-21 08:16:18 -0500 |
| commit | 938b2b790e6d87ef02274275bff3f0166277351f (patch) | |
| tree | 260fef07c457d9b39423db9b8e3bcb8429215415 /pathd/path_cli.c | |
| parent | 6c5f54180aef4635218686b1ccc4fc90fde187d2 (diff) | |
pathd: fix compile warning in path_cli
Use a big-enough buffer in path_cli.c to avoid a compiler
warning (with gcc 9, at least)
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'pathd/path_cli.c')
| -rw-r--r-- | pathd/path_cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pathd/path_cli.c b/pathd/path_cli.c index a55e6ba406..8beb428135 100644 --- a/pathd/path_cli.c +++ b/pathd/path_cli.c @@ -550,7 +550,7 @@ DEFPY_NOSH( "Symbolic Name\n" "Dynamic Path\n") { - char xpath[XPATH_CANDIDATE_BASELEN]; + char xpath[XPATH_MAXLEN + XPATH_CANDIDATE_BASELEN]; int ret; snprintf(xpath, sizeof(xpath), "%s/candidate-path[preference='%s']", |
