diff --git a/src/utilities/kernelscan.c b/src/utilities/kernelscan.c
index 7b12f83..d966f03 100644
--- a/src/utilities/kernelscan.c
+++ b/src/utilities/kernelscan.c
@@ -147,7 +147,7 @@ static void unget_next(parser *p, int ch)
 {
 	get_stack *new;
 
-	if ((new = calloc(sizeof(get_stack), 1)) == NULL) {
+	if ((new = calloc(1, sizeof(get_stack))) == NULL) {
 		fprintf(stderr, "unget_next: Out of memory!\n");
 		exit(EXIT_FAILURE);
 	}
