Fix some potiental issues
This commit is contained in:
1 parent
8c0534a055
commit
5987f389c6
4 files changed
+16
-13
No files matched your search
@@ -583,7 +583,7 @@ int RegEx::Replace(char *text, size_t textMaxLen, const char *replace, size_t re
|
||||
*/
|
||||
if (flags & PCRE_DUPNAMES)
|
||||
{
|
||||
memset(ovector, 0, REGEX_MAX_SUBPATTERNS);
|
||||
memset(ovector, 0, REGEX_MAX_SUBPATTERNS * sizeof(int));
|
||||
|
||||
/**
|
||||
* pcre_copy_named_substring needs a vector containing sub-patterns ranges
|
||||
|
||||
Reference in new issue
Block a user