From cfbe8f424f1077fd97ca2df35c5bb2b93fefecd6 Mon Sep 17 00:00:00 2001 From: Elan Amir Date: Wed, 2 Jun 1993 00:42:21 -0800 Subject: [PATCH] st_size is a quad and must be cast to an int in read() call. SCCS-vsn: local/X11R5/mit/config/imake.c 1.2 --- usr/src/local/X11R5/mit/config/imake.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/src/local/X11R5/mit/config/imake.c b/usr/src/local/X11R5/mit/config/imake.c index 96f41ce2a0..31fa6efaa6 100644 --- a/usr/src/local/X11R5/mit/config/imake.c +++ b/usr/src/local/X11R5/mit/config/imake.c @@ -579,7 +579,7 @@ char *CleanCppInput(Imakefile) LogFatal("Cannot open %s for input.", Imakefile); fstat(infd, &st); buf = Emalloc(st.st_size+1); - if (read(infd, buf, st.st_size) != st.st_size) + if (read(infd, buf, (size_t) st.st_size) != st.st_size) LogFatal("Cannot read all of %s:", Imakefile); close(infd); buf[ st.st_size ] = '\0'; -- 2.20.1