Author: sapient
Date: Mon Apr 30 04:57:58 2007
New Revision: 17179
URL: http://svn.gna.org/viewcvs/wesnoth?rev=17179&view=rev
Log:
specify the string copy(n) construction parameters (necessary for some
compilers)
Modified:
trunk/src/game_config.cpp
Modified: trunk/src/game_config.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game_config.cpp?rev=17179&r1=17178&r2=17179&view=diff
==============================================================================
--- trunk/src/game_config.cpp (original)
+++ trunk/src/game_config.cpp Mon Apr 30 04:57:58 2007
@@ -242,7 +242,7 @@
offset = str.find_first_not_of("0123456789");
patch = lexical_cast_default<unsigned int>(std::string(str, 0,
offset ), 0);
if(offset != std::string::npos) {
- extra = std::string(str, offset);
+ extra = std::string(str, offset, std::string::npos);
}
}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits