summaryrefslogtreecommitdiffstats
path: root/fortune
diff options
context:
space:
mode:
authorcgd <cgd@NetBSD.org>1993-03-21 18:04:42 +0000
committercgd <cgd@NetBSD.org>1993-03-21 18:04:42 +0000
commitc2760e19dd7a046b1296cd219838cfde841b40b6 (patch)
tree1f96c04dc70444b72100076a77bfebb82a5e76ba /fortune
parent77e3814f0c0e3dea4d0032e25666f77e6f83bfff (diff)
downloadbsdgames-darwin-c2760e19dd7a046b1296cd219838cfde841b40b6.tar.gz
bsdgames-darwin-c2760e19dd7a046b1296cd219838cfde841b40b6.tar.zst
bsdgames-darwin-c2760e19dd7a046b1296cd219838cfde841b40b6.zip
after 0.2.2 "stable" patches applied
Diffstat (limited to 'fortune')
-rw-r--r--fortune/fortune/Makefile10
-rw-r--r--fortune/fortune/fortune.c11
2 files changed, 18 insertions, 3 deletions
diff --git a/fortune/fortune/Makefile b/fortune/fortune/Makefile
index f800abb6..bc07bb50 100644
--- a/fortune/fortune/Makefile
+++ b/fortune/fortune/Makefile
@@ -1,8 +1,16 @@
# %W% (Berkeley) %G%
+#
+# PATCHES MAGIC LEVEL PATCH THAT GOT US HERE
+# -------------------- ----- ----------------------
+# CURRENT PATCH LEVEL: 1 90001
+# -------------------- ----- ----------------------
+#
+# 29 Sep 92 Terry Lambert Set NO_REGEX flag
+#
PROG= fortune
MAN6= fortune.0
-CFLAGS+=-I${.CURDIR}/../strfile
+CFLAGS+=-I${.CURDIR}/../strfile -DNO_REGEX
DPADD= ${COMPAT}
LDADD= -lcompat
diff --git a/fortune/fortune/fortune.c b/fortune/fortune/fortune.c
index c044139d..af138220 100644
--- a/fortune/fortune/fortune.c
+++ b/fortune/fortune/fortune.c
@@ -32,6 +32,13 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
+ *
+ * PATCHES MAGIC LEVEL PATCH THAT GOT US HERE
+ * -------------------- ----- ----------------------
+ * CURRENT PATCH LEVEL: 1 90001
+ * -------------------- ----- ----------------------
+ *
+ * 29 Sep 92 Terry Lambert Fixed bogus "pat" on NO_REGEX
*/
#ifndef lint
@@ -284,14 +291,14 @@ register char **argv;
{
register int ignore_case;
# ifndef NO_REGEX
- register char *pat;
+ register char *pat = NULL; /* 29 Sep 92*/
# endif /* NO_REGEX */
extern char *optarg;
extern int optind;
int ch;
ignore_case = FALSE;
- pat = NULL;
+ /* pat = NULL;*/ /* 29 Sep 92*/
# ifdef DEBUG
while ((ch = getopt(argc, argv, "aDefilm:osw")) != EOF)