summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLieuwe Rooijakkers <lieuwerooijakkers@gmail.com>2024-08-08 16:23:05 +0200
committerLieuwe Rooijakkers <lieuwerooijakkers@gmail.com>2024-08-08 16:23:05 +0200
commit574b06a78274a0ac8e766394f6e9b7019bbca0a9 (patch)
tree4eb93f7ffd3b50f4736bba70b2bb8fc21037ba18 /src
parent21ef7b9f4a7b4a774e70d7a27abf02ff114b26d9 (diff)
grijp: switch arguments for calloc
Diffstat (limited to 'src')
-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;