diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2023-05-20 14:09:41 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2023-05-20 14:09:41 +0000 |
commit | 169aa63ec5a670d0c72b7e9fb747e16d76b718c3 (patch) | |
tree | 11c2309e8a99ec64e3de6450b735d8da1bba555a /sys/src/9/ip/ipifc.c | |
parent | e655f4b8bdd9da0c51bd4bece8a2ea2088e57236 (diff) |
devip: provide large buffer for ipifc->local() generator
The ipifc->local generator is the big exception,
dumping the whole link structure of the interface.
Diffstat (limited to 'sys/src/9/ip/ipifc.c')
-rw-r--r-- | sys/src/9/ip/ipifc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/ip/ipifc.c b/sys/src/9/ip/ipifc.c index b6f615084..c79f2cc64 100644 --- a/sys/src/9/ip/ipifc.c +++ b/sys/src/9/ip/ipifc.c @@ -267,7 +267,7 @@ ipifcstate(Conv *c, char *state, int n) ifc->in, ifc->out, ifc->inerr, ifc->outerr, ifc->speed, ifc->delay); - for(lifc = ifc->lifc; lifc != nil && n > m; lifc = lifc->next) + for(lifc = ifc->lifc; lifc != nil; lifc = lifc->next) m += snprint(state+m, n - m, slineformat, lifc->local, lifc->mask, lifc->remote, lifc->validlt, lifc->preflt); if(ifc->lifc == nil) |