Updated SLRE syntax to comply with new version
This commit is contained in:
parent
7ff1465409
commit
eff3dc0d5f
1 changed files with 2 additions and 2 deletions
|
@ -125,7 +125,7 @@ int main(int argc, char *const argv[])
|
||||||
ssize_t read;
|
ssize_t read;
|
||||||
|
|
||||||
//Regexp declarations
|
//Regexp declarations
|
||||||
static const char *regex = "(?i)([0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f])";
|
static const char *regex = "(?i)([0-9A-F][0-9A-F][0-9A-F][0-9A-F][0-9A-F][0-9A-F][0-9A-F][0-9A-F][0-9A-F][0-9A-F][0-9A-F][0-9A-F])";
|
||||||
struct slre_cap caps[2];
|
struct slre_cap caps[2];
|
||||||
|
|
||||||
// Parse command line arguments
|
// Parse command line arguments
|
||||||
|
@ -159,7 +159,7 @@ int main(int argc, char *const argv[])
|
||||||
int i, j = 0, str_len = strlen(line);
|
int i, j = 0, str_len = strlen(line);
|
||||||
|
|
||||||
while (j < str_len &&
|
while (j < str_len &&
|
||||||
(i = slre_match(regex, line + j, str_len - j, caps, 2)) > 0) {
|
(i = slre_match(regex, line + j, str_len - j, caps, 2, 0)) > 0) {
|
||||||
//We've found a key, let's add it to the structure.
|
//We've found a key, let's add it to the structure.
|
||||||
p = realloc(defKeys, defKeys_len + 6);
|
p = realloc(defKeys, defKeys_len + 6);
|
||||||
if (!p) {
|
if (!p) {
|
||||||
|
|
Loading…
Reference in a new issue