logo

checksrc

Check directory for potential non-source files git clone https://anongit.hacktivis.me/git/checksrc.git
commit: 321c636e8f9fe8822d8ef36a89c39ad7ff818774
parent 2d48257c77ad3a38f5545c5d83db4d67e41252e3
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed, 24 Sep 2025 06:11:53 +0200

Use stack for dirent buffer

Diffstat:

Mchecksrc.c2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/checksrc.c b/checksrc.c @@ -158,7 +158,7 @@ checkdir(const char *dirname) for(;;) { #define DENTSSIZ 10240 - static char buf[DENTSSIZ]; + char buf[DENTSSIZ]; // Sadly posix_getdents is still a bit too recent ssize_t nread = getdents(dirfd, buf, DENTSSIZ);