From b9d3841fd9b6c9e726662270cb71896efe884be4 Mon Sep 17 00:00:00 2001 From: xapantu Date: Wed, 5 Jan 2011 13:38:35 +0000 Subject: [PATCH] Fix a bug with addons installing: A directory was created, with the addons name, in lowercase, whereas it tried to instal it in the addons name, in standard case (e.g. python vs Python). So, it worked on Windows and Mac OS X, since they aren't case sensitive, but we had a segfault on Linux git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7266 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/addons/addons_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/addons/addons_manager.cpp b/src/addons/addons_manager.cpp index ab3a461df..cce14cc34 100644 --- a/src/addons/addons_manager.cpp +++ b/src/addons/addons_manager.cpp @@ -176,7 +176,7 @@ void AddonsManager::install(const Addon &addon) //extract the zip in the addons folder called like the addons name std::string dest_file = file_manager->getAddonsDir() + "/" - + addon.getType()+ "s/" + addon.getName() + "/" ; + + addon.getType()+ "s/" + id + "/" ; std::string base_name = StringUtils::getBasename(addon.getZipFileName()); std::string from = file_manager->getAddonsFile(base_name); std::string to = dest_file;