From: ceriel Date: Mon, 6 Apr 1987 12:33:28 +0000 (+0000) Subject: bug fix X-Git-Tag: release-5-5~4224 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=6f1166bccea6ed157e4d52f5231c3253c2f0636b;p=ack.git bug fix --- diff --git a/lang/cem/libcc/gen/opendir.c b/lang/cem/libcc/gen/opendir.c index 6c16e5f9b..5b4c0e733 100644 --- a/lang/cem/libcc/gen/opendir.c +++ b/lang/cem/libcc/gen/opendir.c @@ -25,7 +25,7 @@ char *name; if ((unsigned) stbuf.st_size == stbuf.st_size && (dirp->dd_buf = malloc((unsigned) stbuf.st_size))) { dirp->dd_bsize = stbuf.st_size; - read(fd, dirp->dd_buf, dirp->dd_bsize); + dirp->dd_size = read(fd, dirp->dd_buf, dirp->dd_bsize); close(fd); dirp->dd_fd = -2; dirp->dd_loc = 0;