Remove assertion that was not used

minitar_static_dup() is always called with sizes MUCH smaller than 1024.
This commit is contained in:
apio 2023-01-12 19:00:12 +01:00
parent 7b83dce96a
commit e568e88617
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -1,6 +1,5 @@
#include "minitar.h"
#include "tar.h"
#include <assert.h>
#include <ctype.h>
#include <stdint.h>
#include <stdio.h>
@ -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;