https://github.com/termux/termux-packages/issues/15852

--- a/config.pkg
+++ b/config.pkg
@@ -66,6 +66,7 @@
 #include <sys/types.h>
 #include <stdint.h>
 #include <dirent.h>
+#include <stdio.h>
 
 int main(int argc, char *argv[]) {
 	DIR *dir;
@@ -74,7 +75,7 @@
 
 	dir = opendir(".");
 	entry = readdir(dir);
-	puts(entry->d_name[0]);
+	puts(entry->d_name);
 	closedir(dir);
 	return 0;
 }
