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

master
Thomas Schmitt 7 years ago
parent 7e260ee39c
commit 870241f57c
  1. 5
      xorriso/misc_funct.c
  2. 2
      xorriso/xorriso_timestamp.h

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

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

Loading…
Cancel
Save