fix padding bug

This commit is contained in:
2025-11-21 21:59:39 +01:00
parent f37954d6a3
commit 859ee51b34

View File

@@ -334,6 +334,7 @@ void Engine::regexp() {
char *part = (char *)malloc(substring_length+1);
part = strncpy(part, (char *)substring_start, substring_length);
part[substring_length] = '\0';
subs[i-1] = part;
free(part);