diff options
author | Lieuwe Rooijakkers <lieuwerooijakkers@gmail.com> | 2024-08-08 16:23:05 +0200 |
---|---|---|
committer | Lieuwe Rooijakkers <lieuwerooijakkers@gmail.com> | 2024-08-08 16:23:05 +0200 |
commit | 574b06a78274a0ac8e766394f6e9b7019bbca0a9 (patch) | |
tree | 4eb93f7ffd3b50f4736bba70b2bb8fc21037ba18 | |
parent | 21ef7b9f4a7b4a774e70d7a27abf02ff114b26d9 (diff) |
grijp: switch arguments for calloc
-rw-r--r-- | src/grijp.c | 2 |
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; |