From 1a4afa80292534e92ecb4b9f6665d1910d573ca3 Mon Sep 17 00:00:00 2001 From: Tomohiro Kusumi Date: Thu, 12 Apr 2018 01:40:13 +0900 Subject: Invert calloc(3) argument order (`nmemb` comes first) No functional difference expected, but should still follow the standard. http://pubs.opengroup.org/onlinepubs/009695399/functions/calloc.html --- example/passthrough_ll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/passthrough_ll.c b/example/passthrough_ll.c index 7ebf807..4242c86 100644 --- a/example/passthrough_ll.c +++ b/example/passthrough_ll.c @@ -327,7 +327,7 @@ static void lo_do_readdir(fuse_req_t req, fuse_ino_t ino, size_t size, (void) ino; - buf = calloc(size, 1); + buf = calloc(1, size); if (!buf) return (void) fuse_reply_err(req, ENOMEM); -- cgit v1.2.3