1 --- ./buf.c.orig 2003-10-24 19:15:44.000000000 +0200
2 +++ ./buf.c 2003-10-24 19:21:48.000000000 +0200
11 isbinary = newline_added = 0;
13 strcpy (sfn, "/tmp/ed.XXXXXX");
14 - if (mktemp (sfn) == NULL || (sfp = fopen (sfn, "w+")) == NULL)
16 + if ((sfd < 0) || (sfp = fopen (sfn, "w+")) == NULL)
18 fprintf (stderr, "%s: %s\n", sfn, strerror (errno));
19 sprintf (errmsg, "Cannot open temp file");