You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
715 B

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, &regex[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, &regex[num_regex - 1], errstr,
sizeof (errstr));
- error (EXIT_FAILURE, 0, errstr);
+ error (EXIT_FAILURE, 0, "%s", errstr);
exit (1);
}
}