noice

small file browser
git clone git://git.2f30.org/noice.git
Log | Files | Refs | README | LICENSE

commit 368b43572d3017542b2c2f056b196a4f7c79820f
parent 973aff99b713d300b5b5a17847960707c675702c
Author: lostd <lostd@2f30.org>
Date:   Wed Oct  8 22:55:44 +0300

Comment on dirents deep copy

Diffstat:
noice.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/noice.c b/noice.c @@ -234,6 +234,7 @@ begin: if (strcmp(dp->d_name, ".") == 0 || strcmp(dp->d_name, "..") == 0) continue; + /* Deep copy because readdir(3) reuses the entries */ dents = realloc(dents, (n + 1) * sizeof(*dents)); if (dents == NULL) printerr(1, "realloc");