summaryrefslogtreecommitdiff
path: root/gnu/packages/patches/plotutils-rangecheck.patch
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/patches/plotutils-rangecheck.patch')
-rw-r--r--gnu/packages/patches/plotutils-rangecheck.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/gnu/packages/patches/plotutils-rangecheck.patch b/gnu/packages/patches/plotutils-rangecheck.patch
new file mode 100644
index 00000000000..258e463f660
--- /dev/null
+++ b/gnu/packages/patches/plotutils-rangecheck.patch
@@ -0,0 +1,16 @@
1Retrieved from https://raw.githubusercontent.com/gentoo/gentoo/refs/heads/master/media-libs/plotutils/files/plotutils-2.5.1-rangecheck.patch
2
3Source: Steve Tell (http://lists.gnu.org/archive/html/bug-gnu-utils/2003-12/msg00023.html)
4Upstream: Sent in 2003, not applied yet.
5Reason: Gentoo bug #47688
6--- plotutils-2.5.1.orig/graph/plotter.c 2008-09-26 23:48:15.000000000 +0200
7+++ plotutils-2.5.1/graph/plotter.c 2008-11-08 13:10:14.000000000 +0100
8@@ -1011,7 +1011,7 @@
9 multigrapher->x_trans.output_min = 0.0;
10 multigrapher->x_trans.output_max = (double)PLOT_SIZE;
11 multigrapher->x_trans.output_range = multigrapher->x_trans.output_max - multigrapher->x_trans.output_min;
12- multigrapher->x_trans.output_min = 0.0;
13+ multigrapher->y_trans.output_min = 0.0;
14 multigrapher->y_trans.output_max = (double)PLOT_SIZE;
15 multigrapher->y_trans.output_range = multigrapher->y_trans.output_max - multigrapher->y_trans.output_min;
16