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 /babeld | |
| parent | e17316e56ba830e1cab0c4f382af7676a7bf979a (diff) | |
| parent | 08808541857dc78edd5bfd70f776bfbe58b44051 (diff) | |
Merge pull request #6262 from qlyoung/remove-sprintf
Diffstat (limited to 'babeld')
| -rw-r--r-- | babeld/babel_interface.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/babeld/babel_interface.c b/babeld/babel_interface.c index 5d66e51fa7..772aec1234 100644 --- a/babeld/babel_interface.c +++ b/babeld/babel_interface.c @@ -972,7 +972,7 @@ show_babel_routes_sub(struct babel_route *route, struct vty *vty,          channels[0] = '\0';      else {          int k, j = 0; -        snprintf(channels, 100, " chan ("); +        snprintf(channels, sizeof(channels), " chan (");          j = strlen(channels);          for(k = 0; k < DIVERSITY_HOPS; k++) {              if(route->channels[k] == 0)  | 
