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);