From 58c343f4a85b8fcafc4e444e7a7f38a1f4293303 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Fri, 25 Mar 2016 21:12:28 -0500 Subject: [PATCH] authd: also check size correctly --- authd/authd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authd/authd.c b/authd/authd.c index 8040406c..202dae8c 100644 --- a/authd/authd.c +++ b/authd/authd.c @@ -64,7 +64,7 @@ handle_reload(int parc, char *parv[]) if(parc < 2) { /* Reload all handlers */ - for(size_t i = 0; i < sizeof(authd_reload_handlers); i++) + for(size_t i = 0; i < 256; i++) { if ((handler = authd_reload_handlers[(unsigned char) i]) != NULL) handler(parv[1][0]);