Blame SOURCES/patchutils-format-str.patch
|
|
a7e481 |
diff -up patchutils-0.3.4/src/filterdiff.c.format-str patchutils-0.3.4/src/filterdiff.c
|
|
|
a7e481 |
--- patchutils-0.3.4/src/filterdiff.c.format-str 2017-05-15 11:54:20.203918650 +0100
|
|
|
a7e481 |
+++ patchutils-0.3.4/src/filterdiff.c 2017-05-15 11:54:58.631833806 +0100
|
|
|
a7e481 |
@@ -1355,7 +1355,7 @@ read_regex_file (const char *file)
|
|
|
a7e481 |
char errstr[300];
|
|
|
a7e481 |
regerror (err, ®ex[num_regex - 1], errstr,
|
|
|
a7e481 |
sizeof (errstr));
|
|
|
a7e481 |
- error (EXIT_FAILURE, 0, errstr);
|
|
|
a7e481 |
+ error (EXIT_FAILURE, 0, "%s", errstr);
|
|
|
a7e481 |
exit (1);
|
|
|
a7e481 |
}
|
|
|
a7e481 |
}
|
|
|
a7e481 |
@@ -1613,7 +1613,7 @@ int main (int argc, char *argv[])
|
|
|
a7e481 |
char errstr[300];
|
|
|
a7e481 |
regerror (err, ®ex[num_regex - 1], errstr,
|
|
|
a7e481 |
sizeof (errstr));
|
|
|
a7e481 |
- error (EXIT_FAILURE, 0, errstr);
|
|
|
a7e481 |
+ error (EXIT_FAILURE, 0, "%s", errstr);
|
|
|
a7e481 |
exit (1);
|
|
|
a7e481 |
}
|
|
|
a7e481 |
}
|