mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-17 14:59:20 +02:00
Make max. string length controllable with $MaxStringLen system variable.
This commit is contained in:
@@ -795,7 +795,7 @@ static int Add(void)
|
||||
v3.type = STR_TYPE;
|
||||
l1 = strlen(v1.v.str);
|
||||
l2 = strlen(v2.v.str);
|
||||
if (MAX_STR_LEN && (l1 + l2 > MAX_STR_LEN)) {
|
||||
if (MaxStringLen && (l1 + l2 > MaxStringLen)) {
|
||||
DestroyValue(v1); DestroyValue(v2);
|
||||
return E_STRING_TOO_LONG;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user