[Pinfo-devel] r85 - pinfo/branches/cxx/src
Nathanael Nerode
neroden-guest at costa.debian.org
Tue Aug 30 09:50:15 UTC 2005
Author: neroden-guest
Date: 2005-08-30 09:50:15 +0000 (Tue, 30 Aug 2005)
New Revision: 85
Modified:
pinfo/branches/cxx/src/filehandling_functions.cxx
Log:
Fix bugs so it actually all works again.
Modified: pinfo/branches/cxx/src/filehandling_functions.cxx
===================================================================
--- pinfo/branches/cxx/src/filehandling_functions.cxx 2005-08-30 09:23:07 UTC (rev 84)
+++ pinfo/branches/cxx/src/filehandling_functions.cxx 2005-08-30 09:50:15 UTC (rev 85)
@@ -819,8 +819,9 @@
string::size_type stop_idx;
string::size_type start_idx = 0;
do {
- stop_idx = infopath.find(":");
- string dir = infopath.substr(start_idx, stop_idx);
+ stop_idx = infopath.find(':', start_idx);
+ string dir;
+ dir = infopath.substr(start_idx, stop_idx - start_idx);
/* if this actually is a non-empty string, add it to paths[] */
if (dir.length() > 0) {
paths[numpaths] = strdup(dir.c_str());
More information about the Pinfo-devel
mailing list