ceriel 37 anos atrás
pai
commit
6f1166bcce
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      lang/cem/libcc/gen/opendir.c

+ 1 - 1
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;