Adjust item length in string arrays based on build type
This change sets the STRING_ARRAY_ITEM_MAX_LEN to 128 for
builds that include OC_DYNAMIC_ALLOCATION and 32 otherwise.
@@ -52,7 +52,11 @@ void _oc_free_array(oc_array_t *ocarray, pool type);
#define oc_bool_array(ocboolarray) (oc_cast(ocboolarray, bool))
#define oc_double_array(ocdoublearray) (oc_cast(ocdoublearray, double))
-#define STRING_ARRAY_ITEM_MAX_LEN 24
+#ifdef OC_DYNAMIC_ALLOCATION
+#define STRING_ARRAY_ITEM_MAX_LEN 128
+#else /* OC_DYNAMIC_ALLOCATION */
+#define STRING_ARRAY_ITEM_MAX_LEN 32
+#endif /* !OC_DYNAMIC_ALLOCATION */
void _oc_alloc_string_array(oc_string_array_t *ocstringarray, uint8_t size);
bool _oc_copy_string_to_string_array(oc_string_array_t *ocstringarray,
const char str[], uint8_t index);
