[mlpack-svn] r11518 - mlpack/trunk/src/mlpack/core/util

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Tue Feb 14 15:36:35 EST 2012


Author: jcline3
Date: 2012-02-14 15:36:35 -0500 (Tue, 14 Feb 2012)
New Revision: 11518

Modified:
   mlpack/trunk/src/mlpack/core/util/cli.cpp
Log:
fix ticket #184

Modified: mlpack/trunk/src/mlpack/core/util/cli.cpp
===================================================================
--- mlpack/trunk/src/mlpack/core/util/cli.cpp	2012-02-14 19:35:11 UTC (rev 11517)
+++ mlpack/trunk/src/mlpack/core/util/cli.cpp	2012-02-14 20:36:35 UTC (rev 11518)
@@ -298,7 +298,7 @@
   std::string out("");
   unsigned int pos = 0;
   // First try to look as far as possible.
-  while (pos < str.length() - 1)
+  while (pos < str.length())
   {
     size_t splitpos;
     // Check that we don't have a newline first.




More information about the mlpack-svn mailing list