From 01240ab71a920eddc9d5a57ac812b9c8edd2f5de Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 9 Feb 2010 08:28:03 -0500 Subject: [PATCH] Fix size arg when realloc()ing include stack. From Daniel Kopecek --HG-- branch : 1.7 --- toke.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toke.l b/toke.l index 23f70f9b0..1d5bb8c8c 100644 --- a/toke.l +++ b/toke.l @@ -865,7 +865,7 @@ _push_include(path, isdir) } istacksize += SUDOERS_STACK_INCREMENT; istack = (struct include_stack *) realloc(istack, - sizeof(istack) * istacksize); + sizeof(*istack) * istacksize); if (istack == NULL) { yyerror("unable to allocate memory"); return(FALSE); -- 2.40.0