summaryrefslogtreecommitdiff
path: root/graphics/ploticus/patches
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/ploticus/patches')
-rw-r--r--graphics/ploticus/patches/patch-ab13
-rw-r--r--graphics/ploticus/patches/patch-ac19
-rw-r--r--graphics/ploticus/patches/patch-ad13
3 files changed, 45 insertions, 0 deletions
diff --git a/graphics/ploticus/patches/patch-ab b/graphics/ploticus/patches/patch-ab
new file mode 100644
index 00000000000..1e1f916d1a7
--- /dev/null
+++ b/graphics/ploticus/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1 2001/07/08 08:09:40 rh Exp $
+
+--- preliminaries.c.orig Sun Jul 8 09:47:17 2001
++++ preliminaries.c
+@@ -18,7 +18,7 @@
+
+ /* set first part of name for for tmp files.. */
+ make_unique_string( buf, 0 );
+-sprintf( Tmpname, "/usr/tmp/plo%s", buf );
++sprintf( Tmpname, "/tmp/plo%s", buf );
+
+ Errfp = stderr; /* portability? */
+ Diagfp = stderr; /* portability? */
diff --git a/graphics/ploticus/patches/patch-ac b/graphics/ploticus/patches/patch-ac
new file mode 100644
index 00000000000..140352edc69
--- /dev/null
+++ b/graphics/ploticus/patches/patch-ac
@@ -0,0 +1,19 @@
+$NetBSD: patch-ac,v 1.1 2001/07/08 08:09:40 rh Exp $
+
+--- units.c.orig Sun Jul 8 09:52:03 2001
++++ units.c
+@@ -275,8 +275,14 @@
+ else i = 1;
+
+ if( unittyp[i] == LINEAR ) {
++ /* when generating incremental axes moving from negative to positive, for zero sprintf sometimes
++ gives -0.00 or very tiny values like -5.5579e-17. The following is a workaround.. scg 7/5/01 */
++ if( f < 0.0000000000001 && f > -0.0000000000001 ) f = 0.0;
++
+ if( strlen( format ) < 1 ) sprintf( result, "%g", f );
+ else sprintf( result, format, f );
++
++
+ if( Bignumspacer ) rewritenums( result ); /* rewrite w/various spacing, decimal pt options*/
+ }
+
diff --git a/graphics/ploticus/patches/patch-ad b/graphics/ploticus/patches/patch-ad
new file mode 100644
index 00000000000..a82df5e990b
--- /dev/null
+++ b/graphics/ploticus/patches/patch-ad
@@ -0,0 +1,13 @@
+$NetBSD: patch-ad,v 1.1 2001/07/08 08:09:40 rh Exp $
+
+--- getdata.c.orig Sun Jul 8 09:53:12 2001
++++ getdata.c
+@@ -349,7 +349,7 @@
+ char recordid[80];
+ char data[MAXITEMS][DATAMAXLEN+1];
+ char *df[MAXITEMS];
+-char str[255], str2[255];
++char str[MAXINBUF], str2[MAXINBUF]; /* size increased from 255 scg 6/27/01 */
+ int nfields, nrecords, nd;
+ int i;
+ char commentchar[12];