* man2hlp.c (fopen_check): Fix buffer overflow on error

This commit is contained in:
Andrew V. Samoilov 2002-08-27 10:39:09 +00:00
parent f7b5e31e26
commit 6407a05869
1 changed files with 2 additions and 2 deletions

View File

@ -109,7 +109,7 @@ persistent_fwrite (const void *data, size_t len, FILE * stream)
/* Report error in input */
static void
print_error (char *message)
print_error (const char *message)
{
fprintf (stderr, "man2hlp: %s in file \"%s\" at row %d\n", message,
c_out, in_row);
@ -119,7 +119,7 @@ print_error (char *message)
static FILE *
fopen_check (const char *filename, const char *flags)
{
char *tmp;
char tmp[BUFFER_SIZE];
FILE *f;
f = fopen (filename, flags);