From: Richard Stallman Date: Tue, 11 Aug 1992 08:26:06 +0000 (+0000) Subject: Improve err msg for unknown config. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a6bf434760ab3c33eb6232cb5eba34ca6e4184ab;p=gcc.git Improve err msg for unknown config. (read_specs): Cast args of xmalloc and read to unsigned. From-SVN: r1792 --- diff --git a/gcc/gcc.c b/gcc/gcc.c index cb21ca7c59e..fef9878eea9 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);