1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
src/filterdiff.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/filterdiff.c b/src/filterdiff.c
index eb08d49..0b2b301 100644
--- a/src/filterdiff.c
+++ b/src/filterdiff.c
@@ -1263,7 +1263,7 @@ read_regex_file (const char *file)
char errstr[300];
regerror (err, ®ex[num_regex - 1], errstr,
sizeof (errstr));
- error (EXIT_FAILURE, 0, errstr);
+ error (EXIT_FAILURE, 0, "%s", errstr);
exit (1);
}
}
@@ -1509,7 +1509,7 @@ int main (int argc, char *argv[])
char errstr[300];
regerror (err, ®ex[num_regex - 1], errstr,
sizeof (errstr));
- error (EXIT_FAILURE, 0, errstr);
+ error (EXIT_FAILURE, 0, "%s", errstr);
exit (1);
}
}
|