Decrease STR_SIZE_MAX to prevent large memory usage

This commit is contained in:
Tatsuya Kinoshita
2021-03-19 22:15:07 +09:00
parent 676646443b
commit ec43154493

2
Str.c
View File

@@ -26,7 +26,7 @@
#include "myctype.h"
#define INITIAL_STR_SIZE 32
#define STR_SIZE_MAX (INT_MAX / 8)
#define STR_SIZE_MAX (INT_MAX / 32)
#ifdef STR_DEBUG
/* This is obsolete, because "Str" can handle a '\0' character now. */