mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-30 04:47:06 +02:00
Make shell() obey MaxStringLen
This commit is contained in:
+1
-1
@@ -828,7 +828,7 @@ static int Add(void)
|
||||
v3.type = STR_TYPE;
|
||||
l1 = strlen(v1.v.str);
|
||||
l2 = strlen(v2.v.str);
|
||||
if (MaxStringLen && (l1 + l2 > (size_t) MaxStringLen)) {
|
||||
if (MaxStringLen > 0 && (l1 + l2 > (size_t) MaxStringLen)) {
|
||||
DestroyValue(v1); DestroyValue(v2);
|
||||
return E_STRING_TOO_LONG;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user