diff --git a/cot_param.c b/cot_param.c index ae7e8ec..6f2ff86 100644 --- a/cot_param.c +++ b/cot_param.c @@ -33,7 +33,7 @@ typedef union int64_t s64val; double fVal; #if COT_PARAM_USE_STRING_TYPE - char str[COT_PARAM_STRING_MAX_LENGTH + 2]; + char str[COT_PARAM_STRING_MAX_LENGTH]; #endif } Value_u;