mirror of
https://github.com/Z3Prover/z3
synced 2025-04-13 12:28:44 +00:00
fix unterminated char*
This commit is contained in:
parent
8021d63539
commit
43f9a0a2bd
|
@ -1642,7 +1642,7 @@ static zstring str2RegexStr(zstring str) {
|
|||
|| nc == '*' || nc == '+' || nc == '(' || nc == ')' || nc == '[' || nc == '{') {
|
||||
res = res + zstring("\\");
|
||||
}
|
||||
char tmp[1] = {(char)str[i]};
|
||||
char tmp[2] = {(char)str[i], '\0'};
|
||||
res = res + zstring(tmp);
|
||||
}
|
||||
return res;
|
||||
|
|
Loading…
Reference in a new issue