unitfixes (#3)

- fix regex match padding
- fix key copying
- add more unit tests
This commit is contained in:
T. von Dein
2025-11-21 22:10:52 +01:00
parent bb967c68c6
commit f2137627d7
8 changed files with 74 additions and 24 deletions

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);