mirror of https://github.com/mkerrisk/man-pages
readdir.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
b0b1d9b517
commit
62389489eb
|
@ -227,7 +227,7 @@ as follows:
|
|||
.nf
|
||||
|
||||
name_max = pathconf(dirpath, _PC_NAME_MAX);
|
||||
if (name_max == \-1) /* Limit not defined, or error */
|
||||
if (name_max == \-1) /* Limit not defined, or error */
|
||||
name_max = 255; /* Take a guess */
|
||||
len = offsetof(struct dirent, d_name) + name_max + 1;
|
||||
entryp = malloc(len);
|
||||
|
|
Loading…
Reference in New Issue