Improve err msg for unknown config.
authorRichard Stallman <rms@gnu.org>
Tue, 11 Aug 1992 08:26:06 +0000 (08:26 +0000)
committerRichard Stallman <rms@gnu.org>
Tue, 11 Aug 1992 08:26:06 +0000 (08:26 +0000)
(read_specs): Cast args of xmalloc and read to unsigned.

From-SVN: r1792

gcc/gcc.c

index cb21ca7c59ef5640eb286374c8c5691bf6554097..fef9878eea9615545d5d0c3ee88c6105d3d2a770 100644 (file)
--- 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);