readdir.3: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
David Prévot 2012-08-13 09:23:41 +02:00 committed by Michael Kerrisk
parent b0b1d9b517
commit 62389489eb
1 changed files with 1 additions and 1 deletions

View File

@ -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);