summaryrefslogtreecommitdiffstats
path: root/compat/opendir.c
diff options
context:
space:
mode:
Diffstat (limited to 'compat/opendir.c')
-rw-r--r--compat/opendir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/opendir.c b/compat/opendir.c
index 07ef572..64aedaa 100644
--- a/compat/opendir.c
+++ b/compat/opendir.c
@@ -28,7 +28,7 @@ opendir(
if ((fd = open(myname, 0, 0)) == -1) {
return NULL;
}
- dirp = (DIR *) ckalloc(sizeof(DIR));
+ dirp = (DIR *) attemptckalloc(sizeof(DIR));
if (dirp == NULL) {
/* unreachable? */
close(fd);