tCorrect a bug with reading the global configuration file under Win32. - vaccinewars - be a doctor and try to vaccinate the world
(HTM) git clone git://src.adamsgaard.dk/vaccinewars
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit cdaab7cc8bfabf1bb6238cc895cff9b967c4d560
(DIR) parent 7cc115b833d05c9317307d467d49e96f7f9a5ae0
(HTM) Author: Ben Webb <ben@salilab.org>
Date: Mon, 27 Sep 2004 04:16:33 +0000
Correct a bug with reading the global configuration file under Win32.
Diffstat:
M src/dopewars.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/src/dopewars.c b/src/dopewars.c
t@@ -2387,7 +2387,7 @@ gchar *GetGlobalConfigFile(void)
/* Global configuration is in the same directory as the dopewars binary */
bindir = GetBinaryDir();
if (bindir) {
- conf = g_strdup_printf("%s/dopewars-config.txt", conf);
+ conf = g_strdup_printf("%s/dopewars-config.txt", bindir);
g_free(bindir);
}
return conf;