Commit b576c6b6 by Richard Stallman

*** empty log message ***

From-SVN: r1177
parent 64359a8a
......@@ -4009,7 +4009,7 @@ finclude (f, fname, op, system_header_p, dirptr)
fp->dir = dirptr;
if (S_ISREG (st_mode)) {
fp->buf = (U_CHAR *) alloca (st_size + 2);
fp->buf = (U_CHAR *) xmalloc (st_size + 2);
fp->bufp = fp->buf;
/* Read the file contents, knowing that st_size is an upper bound
......@@ -4084,12 +4084,14 @@ finclude (f, fname, op, system_header_p, dirptr)
indepth--;
input_file_stack_tick++;
output_line_command (&instack[indepth], op, 0, leave_file);
free (fp->buf);
return;
nope:
perror_with_name (fname);
close (f);
free (fp->buf);
}
/* Record that inclusion of the file named FILE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment