From e568e88617fe550189a9dc63f1c3579a3a13310c Mon Sep 17 00:00:00 2001 From: apio Date: Thu, 12 Jan 2023 19:00:12 +0100 Subject: [PATCH] Remove assertion that was not used minitar_static_dup() is always called with sizes MUCH smaller than 1024. --- src/util.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/util.c b/src/util.c index e87bd19..8e1b03a 100644 --- a/src/util.c +++ b/src/util.c @@ -1,6 +1,5 @@ #include "minitar.h" #include "tar.h" -#include #include #include #include @@ -124,7 +123,6 @@ static size_t minitar_align_down_to_block_size(size_t size) static char* minitar_static_dup(const char* str, size_t size) { static char result[1024]; - assert(size < 1024); memcpy(result, str, size); result[size] = 0; return result;