Commit Diff


commit - f9a643e8b740363d5cf068472042b500426fa0b2
commit + 9389bcf69b554cb6da81ece9452257fa11011dd2
blob - 1eca88b16821794acedbdc572bfbd3660df5bc71
blob + a0442e89b03c4cd371c19155dce9c196ef412870
--- lib/repository.c
+++ lib/repository.c
@@ -1227,7 +1227,8 @@ got_repo_list_packidx(struct got_pathlist_head *packid
 	}
 
 	while ((dent = readdir(packdir)) != NULL) {
-		if (!got_repo_is_packidx_filename(dent->d_name, dent->d_namlen))
+		if (!got_repo_is_packidx_filename(dent->d_name,
+		    strlen(dent->d_name)))
 			continue;
 
 		if (asprintf(&path_packidx, "%s/%s", GOT_OBJECTS_PACK_DIR,