summaryrefslogtreecommitdiff
path: root/app-text/fbpdf/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-11-25 22:39:15 +0000
committerV3n3RiX <venerix@redcorelinux.org>2020-11-25 22:39:15 +0000
commitd934827bf44b7cfcf6711964418148fa60877668 (patch)
tree0625f358789b5e015e49db139cc1dbc9be00428f /app-text/fbpdf/files
parent2e34d110f164bf74d55fced27fe0000201b3eec5 (diff)
gentoo resync : 25.11.2020
Diffstat (limited to 'app-text/fbpdf/files')
-rw-r--r--app-text/fbpdf/files/fbpdf-0_p20190202-printf.patch38
1 files changed, 0 insertions, 38 deletions
diff --git a/app-text/fbpdf/files/fbpdf-0_p20190202-printf.patch b/app-text/fbpdf/files/fbpdf-0_p20190202-printf.patch
deleted file mode 100644
index 31f9fbe2c8ab..000000000000
--- a/app-text/fbpdf/files/fbpdf-0_p20190202-printf.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-https://bugs.gentoo.org/714736
-
-From e89e36c01d09ca6aec03732e922e749257cac3f4 Mon Sep 17 00:00:00 2001
-From: Dmitry Bogatov <KAction@disroot.org>
-Date: Sun, 9 Feb 2020 00:47:09 -0500
-Subject: [PATCH] Avoid passing non-constant format string to printf
-
-gcc complains loudly on any code that uses anything but string literal
-as format string to printf. Right now format string is "const char *"
-and does not contain %-sequences, but should '%' appear in "usage"
-string in future, bad things would happen.
-
-Since formatting functionality of "printf" is not used anyway, replacing
-it with "puts" makes code both safer and easier to understand.
----
- fbpdf.c | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/fbpdf.c b/fbpdf.c
-index a58797f..65b654b 100644
---- a/fbpdf.c
-+++ b/fbpdf.c
-@@ -351,13 +351,13 @@ static void mainloop(void)
- }
-
- static char *usage =
-- "usage: fbpdf [-r rotation] [-z zoom x10] [-p page] filename\n";
-+ "usage: fbpdf [-r rotation] [-z zoom x10] [-p page] filename";
-
- int main(int argc, char *argv[])
- {
- int i = 1;
- if (argc < 2) {
-- printf(usage);
-+ puts(usage);
- return 1;
- }
- strcpy(filename, argv[argc - 1]);