bug fix
authorceriel <none@none>
Mon, 6 Apr 1987 12:33:28 +0000 (12:33 +0000)
committerceriel <none@none>
Mon, 6 Apr 1987 12:33:28 +0000 (12:33 +0000)
lang/cem/libcc/gen/opendir.c

index 6c16e5f..5b4c0e7 100644 (file)
@@ -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;