Corrected an error with conversion from bourne shell patterns to regular expressions. Coverity CID 28727.

This commit is contained in:
Thomas Schmitt 2015-11-10 09:40:34 +00:00
parent 7e260ee39c
commit 870241f57c
2 changed files with 4 additions and 3 deletions

View File

@ -1203,11 +1203,12 @@ int Xorriso__bourne_to_reg(char bourne_expr[], char reg_expr[], int flag)
*(wpt++)= '!'; *(wpt++)= '!';
} }
break;case '^': break;case '^':
if(in_square_brackets) if(in_square_brackets) {
*(wpt++)= '^'; *(wpt++)= '^';
else } else {
*(wpt++)= '\\'; *(wpt++)= '\\';
*(wpt++)= '^'; *(wpt++)= '^';
}
break;case '$': break;case '$':
*(wpt++)= '\\'; *(wpt++)= '\\';
*(wpt++)= '$'; *(wpt++)= '$';

View File

@ -1 +1 @@
#define Xorriso_timestamP "2015.11.10.090901" #define Xorriso_timestamP "2015.11.10.094015"