aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-08-11 08:26:06 +0000
committerRichard Stallman <rms@gnu.org>1992-08-11 08:26:06 +0000
commita6bf434760ab3c33eb6232cb5eba34ca6e4184ab (patch)
treebd92312bfe8974800e39391982bceae79af2883f
parent3aaa90c7739cefaf658b56d7e2e6073856209940 (diff)
downloadgcc-a6bf434760ab3c33eb6232cb5eba34ca6e4184ab.zip
gcc-a6bf434760ab3c33eb6232cb5eba34ca6e4184ab.tar.gz
gcc-a6bf434760ab3c33eb6232cb5eba34ca6e4184ab.tar.bz2
Improve err msg for unknown config.
(read_specs): Cast args of xmalloc and read to unsigned. From-SVN: r1792
-rw-r--r--gcc/gcc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index cb21ca7..fef9878 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -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);