convert patches to unified diffs
This commit is contained in:
parent
60e62032b0
commit
758b057bd8
@ -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 ****
|
||||
--- 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)
|
||||
trunc (word, prev);
|
||||
return 0;
|
||||
}
|
||||
--- 83,89 ----
|
||||
char word[257];
|
||||
static char prev[257] = "";
|
||||
|
||||
! while (fgets (word, 256, stdin) != NULL)
|
||||
- while (gets (word) != NULL)
|
||||
+ while (fgets (word, 256, stdin) != NULL)
|
||||
trunc (word, prev);
|
||||
return 0;
|
||||
}
|
||||
|
@ -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 ****
|
||||
--- 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)
|
||||
{
|
||||
(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'))
|
||||
- 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')
|
||||
|
@ -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 ****
|
||||
--- 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)
|
||||
{
|
||||
(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)
|
||||
- if (gets (wordp) == NULL)
|
||||
+ if (fgets (wordp, strlen(wordp), stdin) == NULL)
|
||||
{
|
||||
(void) fprintf (stderr, UNSQ_C_SURPRISE_EOF);
|
||||
exit (1);
|
||||
|
Loading…
Reference in New Issue
Block a user