From bc413114783af13f16f01277d6aadc6ddbacb70e Mon Sep 17 00:00:00 2001 From: Molgrum Date: Fri, 28 Dec 2007 00:13:22 +0000 Subject: [PATCH] qqshka noticed that the demolist in linux doesn't care about array sizes git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2830 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- fteqtv/control.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fteqtv/control.c b/fteqtv/control.c index bfec201af..ca09a5b93 100644 --- a/fteqtv/control.c +++ b/fteqtv/control.c @@ -215,6 +215,8 @@ void Cluster_BuildAvailableDemoList(cluster_t *cluster) { for(;;) { + if (cluster->availdemoscount == sizeof(cluster->availdemos)/sizeof(cluster->availdemos[0])) + break; ent = readdir(dir); if (!ent) break;