Revision: 7699
http://playerstage.svn.sourceforge.net/playerstage/?rev=7699&view=rev
Author: hsujohnhsu
Date: 2009-05-20 07:27:50 +0000 (Wed, 20 May 2009)
Log Message:
-----------
bug fix.
Modified Paths:
--------------
code/gazebo/trunk/server/GazeboConfig.cc
Modified: code/gazebo/trunk/server/GazeboConfig.cc
===================================================================
--- code/gazebo/trunk/server/GazeboConfig.cc 2009-05-20 03:58:05 UTC (rev
7698)
+++ code/gazebo/trunk/server/GazeboConfig.cc 2009-05-20 07:27:50 UTC (rev
7699)
@@ -70,7 +70,7 @@
pos1 = pos2+1;
pos2 = str.find(delim,pos2+1);
}
- this->ogrePaths.push_back(str.substr(pos1,str.size()));
+ this->ogrePaths.push_back(str.substr(pos1,str.size()-pos1));
}
char *gazebo_resource_path = getenv("GAZEBO_RESOURCE_PATH");
if(gazebo_resource_path)
@@ -80,11 +80,11 @@
int pos2 = str.find(delim);
while (pos2 != std::string::npos)
{
- this->gazeboPaths.push_back(str.substr(pos1,pos2-pos1+1));
+ this->gazeboPaths.push_back(str.substr(pos1,pos2-pos1));
pos1 = pos2+1;
pos2 = str.find(delim,pos2+1);
}
- this->gazeboPaths.push_back(str.substr(pos1,str.size()));
+ this->gazeboPaths.push_back(str.substr(pos1,str.size()-pos1));
}
if (cfgFile)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit