diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-10-21 19:35:01 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-10-21 19:35:01 +0000 |
commit | ee68245b1ff2af84f749c14841462328db9ed432 (patch) | |
tree | 740b0897817cb286e66f78b194e3da9641fc9ccc /src/game-server | |
parent | fcafa58b344a9c47a8e67227fcffe7690953c648 (diff) | |
download | manaserv-ee68245b1ff2af84f749c14841462328db9ed432.tar.gz manaserv-ee68245b1ff2af84f749c14841462328db9ed432.tar.xz manaserv-ee68245b1ff2af84f749c14841462328db9ed432.zip |
Fixed some compile warnings.
Diffstat (limited to 'src/game-server')
-rw-r--r-- | src/game-server/resourcemanager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game-server/resourcemanager.cpp b/src/game-server/resourcemanager.cpp index 8816e8c..562b20a 100644 --- a/src/game-server/resourcemanager.cpp +++ b/src/game-server/resourcemanager.cpp @@ -79,7 +79,8 @@ void ResourceManager::initialize() #else // Retrieve the current path char programPath[256]; - getcwd(programPath, 256); + if (!getcwd(programPath, 256)) + strcpy(programPath, "."); strncat(programPath, "/data", 256 - strlen(programPath) - 1); // Create our directory structure |