From 178755aa587fea1ecb78917a5e4a682d13233eaf Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Sun, 14 Jul 2024 00:11:31 +0300 Subject: [PATCH] fwrite_le.c: use `malloc` instead of `calloc` --- src/fwrite_le.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fwrite_le.c b/src/fwrite_le.c index 4a3b4cc..748de52 100644 --- a/src/fwrite_le.c +++ b/src/fwrite_le.c @@ -65,9 +65,9 @@ size_t fwrite_le( // case: big-endian size_t bytes_count = size * count; #if FWRITE_LE_NO_MODIFICATION - uint8_t* bytes = calloc(bytes_count, sizeof(uint8_t)); + uint8_t* bytes = malloc(bytes_count, sizeof(uint8_t)); if (bytes == NULL) { - perror("calloc"); + perror("malloc"); exit(EXIT_FAILURE); } memcpy(bytes, ptr, bytes_count);