From f82c0251f56fb70b012de4cbfe185adfb66f7cf5 Mon Sep 17 00:00:00 2001 From: Meep-Eep Date: Thu, 7 Feb 2008 09:06:56 +0000 Subject: [PATCH] Fixed bug. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2920 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sc2/src/options.c b/sc2/src/options.c index eebaad18a..8bed3f95e 100644 --- a/sc2/src/options.c +++ b/sc2/src/options.c @@ -149,7 +149,7 @@ prepareContentDir (const char *contentDirName, const char *execFile) if (loc == NULL) { char *tempDir = (char *) HMalloc (PATH_MAX); - snprintf (tempDir, sizeof tempDir, "%s/../Resources/content", + snprintf (tempDir, PATH_MAX, "%s/../Resources/content", dirname (execFile)); loc = findFileInDirs ((const char **) &tempDir, 1, testFile); HFree (tempDir);