diff options
author | Jan Moskyto Matejka <mq@ucw.cz> | 2015-12-18 11:57:38 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2015-12-20 13:47:39 +0100 |
commit | 7fd4143eadd5af6e1ad7825d7d7506ad021bf1ad (patch) | |
tree | b16f93737a5bda12b6677a5ad3f45cf5b1c13c30 /proto | |
parent | 9656dce72eead158e6da3ad560720bb0addfe7e2 (diff) |
Integrated address print lengths
Minor changes by Ondrej Santiago Zajicek
Diffstat (limited to 'proto')
-rw-r--r-- | proto/ospf/ospf.c | 2 | ||||
-rw-r--r-- | proto/static/static.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c index cdc62d0a..983f76f1 100644 --- a/proto/ospf/ospf.c +++ b/proto/ospf/ospf.c @@ -1094,7 +1094,7 @@ static inline void show_lsa_external(struct top_hash_entry *he, int ospf2) { struct ospf_lsa_ext_local rt; - char str_via[STD_ADDRESS_P_LENGTH + 8] = ""; + char str_via[IPA_MAX_TEXT_LENGTH + 8] = ""; char str_tag[16] = ""; if (he->lsa_type == LSA_T_EXT) diff --git a/proto/static/static.c b/proto/static/static.c index bc5f104f..809c29fb 100644 --- a/proto/static/static.c +++ b/proto/static/static.c @@ -643,7 +643,7 @@ struct protocol proto_static = { static void static_show_rt(struct static_route *r) { - byte via[STD_ADDRESS_P_LENGTH + 16]; + byte via[IPA_MAX_TEXT_LENGTH + 25]; switch (r->dest) { |