mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 13:28:47 +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 == '{') {
|
|| nc == '*' || nc == '+' || nc == '(' || nc == ')' || nc == '[' || nc == '{') {
|
||||||
res = res + zstring("\\");
|
res = res + zstring("\\");
|
||||||
}
|
}
|
||||||
char tmp[1] = {(char)str[i]};
|
char tmp[2] = {(char)str[i], '\0'};
|
||||||
res = res + zstring(tmp);
|
res = res + zstring(tmp);
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
|
|
Loading…
Reference in a new issue