From 0d420918e71f94bec3fd4c5010e570b45667d48d Mon Sep 17 00:00:00 2001 From: David Goulet Date: Wed, 21 Oct 2020 13:48:37 -0400 Subject: main: Off by one when dumping subsystem list Fixes #40163 Signed-off-by: David Goulet --- src/app/main/subsysmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/main/subsysmgr.c b/src/app/main/subsysmgr.c index de601d28cd..349803cd46 100644 --- a/src/app/main/subsysmgr.c +++ b/src/app/main/subsysmgr.c @@ -300,7 +300,7 @@ subsystems_thread_cleanup(void) void subsystems_dump_list(void) { - for (unsigned i = 0; i < n_tor_subsystems - 1; ++i) { + for (unsigned i = 0; i < n_tor_subsystems; ++i) { const subsys_fns_t *sys = tor_subsystems[i]; printf("% 4d\t%16s\t%s\n", sys->level, sys->name, sys->location?sys->location:""); -- cgit v1.2.3-54-g00ecf