Decrease STR_SIZE_MAX to prevent large memory usage
This commit is contained in:
2
Str.c
2
Str.c
@@ -26,7 +26,7 @@
|
|||||||
#include "myctype.h"
|
#include "myctype.h"
|
||||||
|
|
||||||
#define INITIAL_STR_SIZE 32
|
#define INITIAL_STR_SIZE 32
|
||||||
#define STR_SIZE_MAX (INT_MAX / 8)
|
#define STR_SIZE_MAX (INT_MAX / 32)
|
||||||
|
|
||||||
#ifdef STR_DEBUG
|
#ifdef STR_DEBUG
|
||||||
/* This is obsolete, because "Str" can handle a '\0' character now. */
|
/* This is obsolete, because "Str" can handle a '\0' character now. */
|
||||||
|
Reference in New Issue
Block a user