summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/grijp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/grijp.c b/src/grijp.c
index 2a039b8..8bb285e 100644
--- a/src/grijp.c
+++ b/src/grijp.c
@@ -73,7 +73,7 @@ static char** parse_options(int argc, char **argv) {
static void parse_patterns() {
size_t cappat = 1 << 4;
- patterns = calloc(sizeof(char*), cappat);
+ patterns = calloc(cappat, sizeof(char*));
char *s = gpats;
char *pat = NULL;