file_handle = fileno (stdin);
else
if ((file_handle = open (file_name, O_RDONLY)) < 0)
- error (EXIT_FAILURE, errno, file_name);
+ error (EXIT_FAILURE, errno, "%s", file_name);
/* If the file is a plain, regular file, allocate the memory buffer all at
once and swallow the file in one blow. In other cases, read the file
once in a while, as we go. */
if (fstat (file_handle, &stat_block) < 0)
- error (EXIT_FAILURE, errno, file_name);
+ error (EXIT_FAILURE, errno, "%s", file_name);
if (S_ISREG (stat_block.st_mode))
{
else
#endif /* not MSDOS */
- error (EXIT_FAILURE, errno, file_name);
+ error (EXIT_FAILURE, errno, "%s", file_name);
}
block->end = block->start + in_memory_size;
}
}
if (read_length < 0)
- error (EXIT_FAILURE, errno, file_name);
+ error (EXIT_FAILURE, errno, "%s", file_name);
block->end = block->start + used_length;
}
{
fclose (stdout);
if (fopen (argv[optind], "w") == NULL)
- error (EXIT_FAILURE, errno, argv[optind]);
+ error (EXIT_FAILURE, errno, "%s", argv[optind]);
optind++;
}