diff options
Diffstat (limited to '')
-rw-r--r-- | math/sc/Makefile | 2 | ||||
-rw-r--r-- | math/sc/files/patch-ae | 24 |
2 files changed, 22 insertions, 4 deletions
diff --git a/math/sc/Makefile b/math/sc/Makefile index c87e52d95874..e76e1c9f1878 100644 --- a/math/sc/Makefile +++ b/math/sc/Makefile @@ -7,7 +7,7 @@ PORTNAME= sc PORTVERSION= 6.21 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= math MASTER_SITES= ftp://gatekeeper.dec.com/pub/misc/ EXTRACT_SUFX= .tar.Z diff --git a/math/sc/files/patch-ae b/math/sc/files/patch-ae index b45d56d23c81..d9a814638407 100644 --- a/math/sc/files/patch-ae +++ b/math/sc/files/patch-ae @@ -1,6 +1,15 @@ ---- format.c.orig Mon May 11 20:43:34 1992 -+++ format.c Sat Dec 9 21:24:41 2000 -@@ -263,7 +263,6 @@ +--- format.c.orig Mon May 11 11:43:34 1992 ++++ format.c Sun Jun 23 19:38:37 2002 +@@ -256,14 +256,14 @@ + + case '#': + width++; ++ zero_pad++; + break; + + case '0': +- zero_pad = ++width; ++ width++; break; } } @@ -8,3 +17,12 @@ } (void) sprintf(prtfmt, "%%.%dlf", width); (void) sprintf(mantissa, prtfmt, val); +@@ -281,6 +281,8 @@ + { + if (*cp == '0') + *cp = EOS; ++ else ++ break; + } + } + |