|
@@ -174,6 +174,11 @@ int main(int argc, char *argv[])
|
|
|
fprintf(output, "%s", s);
|
|
|
}
|
|
|
|
|
|
+ if (fclose(input))
|
|
|
+ {
|
|
|
+ fprintf(stderr, "couldn't close input: %s\n", strerror(errno));
|
|
|
+ exit(EXIT_FAILURE);
|
|
|
+ }
|
|
|
if (fclose(output))
|
|
|
{
|
|
|
fprintf(stderr, "couldn't close output: %s\n", strerror(errno));
|