3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-13 12:28:44 +00:00

fix unterminated char*

This commit is contained in:
Murphy Berzish 2017-03-17 13:48:30 -04:00
parent 8021d63539
commit 43f9a0a2bd

View file

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