examine this more later -- it mattered

This commit is contained in:
albert
2002-10-13 20:32:09 +00:00
parent 6bc460988b
commit 2bd046593c
2 changed files with 6 additions and 4 deletions

View File

@ -234,7 +234,7 @@ static char** file2strvec(const char* directory, const char* what) {
/* read whole file into a memory buffer, allocating as we go */
while ((n = read(fd, buf, sizeof buf - 1)) > 0) {
if (n < sizeof buf - 1)
if (n < (int)(sizeof buf - 1))
end_of_file = 1;
if (n == 0 && rbuf == 0)
return NULL; /* process died between our open and read */