From ec7b26a510660f8a2c8adef5747ce0b3ae39824f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Marchal?= Date: Mon, 7 Sep 2009 18:54:22 +0000 Subject: [PATCH] Simply rewind the stream instead of closing it and reopening it. --- html.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/html.c b/html.c index 3431706..b1c1662 100644 --- a/html.c +++ b/html.c @@ -202,12 +202,7 @@ void htmlrel(void) tnoucache+=my_atoll(wtemp); } - fclose(fp_in); - - if ((fp_in = fopen(arqin, "r")) == 0){ - fprintf(stderr, "SARG: (html4) %s: %s\n",text[45],arqin); - exit(1); - } + rewind(fp_in); if ((fp_ou = fopen(arqou, "w")) == 0){ fprintf(stderr, "SARG: (html5) %s: %s\n",text[45],arqou); -- 2.47.2