From 758b057bd8d81e1593171fcd0d579bf7511ec151 Mon Sep 17 00:00:00 2001 From: brad Date: Tue, 4 Jan 2000 19:03:20 +0000 Subject: [PATCH] convert patches to unified diffs --- textproc/ispell/patches/patch-aa | 30 +++++++++++----------------- textproc/ispell/patches/patch-ac | 34 ++++++++++++-------------------- textproc/ispell/patches/patch-ad | 30 +++++++++++----------------- 3 files changed, 35 insertions(+), 59 deletions(-) diff --git a/textproc/ispell/patches/patch-aa b/textproc/ispell/patches/patch-aa index b85973b55f7..6c865bca58c 100644 --- a/textproc/ispell/patches/patch-aa +++ b/textproc/ispell/patches/patch-aa @@ -1,19 +1,11 @@ -*** sq.c.orig Mon Apr 27 21:49:01 1998 ---- sq.c Mon Apr 27 21:49:14 1998 -*************** -*** 83,89 **** - char word[257]; - static char prev[257] = ""; - -! while (gets (word) != NULL) - trunc (word, prev); - return 0; - } ---- 83,89 ---- - char word[257]; - static char prev[257] = ""; - -! while (fgets (word, 256, stdin) != NULL) - trunc (word, prev); - return 0; - } +--- sq.c.orig Tue Jan 25 13:32:18 1994 ++++ sq.c Tue Jan 4 00:05:13 2000 +@@ -83,7 +83,7 @@ + char word[257]; + static char prev[257] = ""; + +- while (gets (word) != NULL) ++ while (fgets (word, 256, stdin) != NULL) + trunc (word, prev); + return 0; + } diff --git a/textproc/ispell/patches/patch-ac b/textproc/ispell/patches/patch-ac index 5a6c8545a76..be423a1542a 100644 --- a/textproc/ispell/patches/patch-ac +++ b/textproc/ispell/patches/patch-ac @@ -1,21 +1,13 @@ -*** ispell.c.orig Mon Apr 27 21:46:38 1998 ---- ispell.c Mon Apr 27 21:48:33 1998 -*************** -*** 835,842 **** - - (void) fstat (fileno (infile), &statbuf); - (void) strcpy (tempfile, TEMPNAME); -! if (mktemp (tempfile) == NULL || tempfile[0] == '\0' -! || (outfile = fopen (tempfile, "w")) == NULL) - { - (void) fprintf (stderr, CANT_CREATE, - (tempfile == NULL || tempfile[0] == '\0') ---- 835,842 ---- - - (void) fstat (fileno (infile), &statbuf); - (void) strcpy (tempfile, TEMPNAME); -! if (((outfile = fdopen (mkstemp(tempfile), "w")) == NULL) || -! (tempfile[0] == '\0')) - { - (void) fprintf (stderr, CANT_CREATE, - (tempfile == NULL || tempfile[0] == '\0') +--- ispell.c.orig Tue Jan 4 00:05:12 2000 ++++ ispell.c Tue Jan 4 00:05:14 2000 +@@ -857,8 +857,8 @@ + + (void) fstat (fileno (infile), &statbuf); + (void) strcpy (tempfile, TEMPNAME); +- if (mktemp (tempfile) == NULL || tempfile[0] == '\0' +- || (outfile = fopen (tempfile, "w")) == NULL) ++ if (((outfile = fdopen (mkstemp(tempfile), "w")) == NULL) || ++ (tempfile[0] == '\0')) + { + (void) fprintf (stderr, CANT_CREATE, + (tempfile == NULL || tempfile[0] == '\0') diff --git a/textproc/ispell/patches/patch-ad b/textproc/ispell/patches/patch-ad index ee9e0cac267..095f330a5ed 100644 --- a/textproc/ispell/patches/patch-ad +++ b/textproc/ispell/patches/patch-ad @@ -1,19 +1,11 @@ -*** unsq.c.orig Mon Apr 27 21:50:58 1998 ---- unsq.c Mon Apr 27 21:52:20 1998 -*************** -*** 116,122 **** - wordp = word; - while (same_count--) - *wordp++ = (*prevp++); -! if (gets (wordp) == NULL) - { - (void) fprintf (stderr, UNSQ_C_SURPRISE_EOF); - exit (1); ---- 116,122 ---- - wordp = word; - while (same_count--) - *wordp++ = (*prevp++); -! if (fgets (wordp, strlen(wordp), stdin) == NULL) - { - (void) fprintf (stderr, UNSQ_C_SURPRISE_EOF); - exit (1); +--- unsq.c.orig Tue Jan 25 13:32:18 1994 ++++ unsq.c Tue Jan 4 00:05:15 2000 +@@ -116,7 +116,7 @@ + wordp = word; + while (same_count--) + *wordp++ = (*prevp++); +- if (gets (wordp) == NULL) ++ if (fgets (wordp, strlen(wordp), stdin) == NULL) + { + (void) fprintf (stderr, UNSQ_C_SURPRISE_EOF); + exit (1);