From 918c67c691281bdfd0e0b39e76c308dc3fe7c8cc Mon Sep 17 00:00:00 2001 From: Spoike Date: Fri, 21 Jun 2013 08:23:42 +0000 Subject: [PATCH] does that fix anything? git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4393 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/server/svq2_game.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/engine/server/svq2_game.c b/engine/server/svq2_game.c index 19522255e..81c2ca924 100644 --- a/engine/server/svq2_game.c +++ b/engine/server/svq2_game.c @@ -28,7 +28,8 @@ void *SVQ2_GetGameAPI (void *parms) }; char name[MAX_OSPATH]; - char *searchpath; + char searchpath[MAX_OSPATH]; + void *iterator; int o; const char *gamename[] = { #ifdef _DEBUG @@ -44,10 +45,10 @@ void *SVQ2_GetGameAPI (void *parms) void *ret; - Con_DPrintf("Searching for %s\n", gamename[o]); + Con_DPrintf("Searching for %s\n", "game" ARCH_CPU_POSTFIX ARCH_DL_POSTFIX); - searchpath = 0; - while((searchpath = COM_NextPath(searchpath))) + iterator = NULL; + while(COM_IteratePaths(&iterator, searchpath, sizeof(searchpath))) { for (o = 0; gamename[o]; o++) {