gentoo/dev-libs/libf2c/files/libf2c-20110801-format-security.patch
David Seifert cf9292efe2
dev-libs/libf2c: Port to EAPI 7
Package-Manager: Portage-2.3.75, Repoman-2.3.17
Signed-off-by: David Seifert <soap@gentoo.org>
2019-09-07 13:55:55 +02:00

12 lines
345 B
Diff

--- a/arithchk.c
+++ b/arithchk.c
@@ -122,7 +122,7 @@
long Cray1;
/* Cray1 = 4617762693716115456 -- without overflow on non-Crays */
- Cray1 = printf(emptyfmt) < 0 ? 0 : 4617762;
+ Cray1 = fputs(emptyfmt, stdout) < 0 ? 0 : 4617762;
if (printf(emptyfmt, Cray1) >= 0)
Cray1 = 1000000*Cray1 + 693716;
if (printf(emptyfmt, Cray1) >= 0)