Commit a6bf4347 by Richard Stallman

Improve err msg for unknown config.

(read_specs): Cast args of xmalloc and read to unsigned.

From-SVN: r1792
parent 3aaa90c7
......@@ -609,8 +609,8 @@ read_specs (filename)
pfatal_with_name (filename);
/* Read contents of file into BUFFER. */
buffer = xmalloc (statbuf.st_size + 1);
read (desc, buffer, statbuf.st_size);
buffer = xmalloc ((unsigned) statbuf.st_size + 1);
read (desc, buffer, (unsigned) statbuf.st_size);
buffer[statbuf.st_size] = 0;
close (desc);
......
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