mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-28 12:10:24 +00:00
Merge pull request #15734 from opensourcerouting/fix/compile_truncation
Fix compile warning with -Wformat-truncation
This commit is contained in:
commit
971455c9f3
@ -2908,7 +2908,7 @@ static void show_isis_route_common(struct vty *vty, int levels,
|
||||
struct isis_spftree *spftree;
|
||||
struct listnode *node;
|
||||
struct isis_area *area;
|
||||
char key[8];
|
||||
char key[18];
|
||||
|
||||
if (!isis->area_list || isis->area_list->count == 0)
|
||||
return;
|
||||
|
@ -2740,9 +2740,9 @@ static void show_sr_node(struct vty *vty, struct json_object *json,
|
||||
if (srn->algo[i] == SR_ALGORITHM_UNSET)
|
||||
continue;
|
||||
json_obj = json_object_new_object();
|
||||
char tmp[2];
|
||||
char tmp[12];
|
||||
|
||||
snprintf(tmp, sizeof(tmp), "%u", i);
|
||||
snprintf(tmp, sizeof(tmp), "%d", i);
|
||||
json_object_string_add(json_obj, tmp,
|
||||
srn->algo[i] == SR_ALGORITHM_SPF
|
||||
? "SPF"
|
||||
|
Loading…
Reference in New Issue
Block a user