[PC-BSD Commits] r2544 - pcbsd/trunk/PCInstall

svn at pcbsd.org svn at pcbsd.org
Thu Aug 7 06:31:29 PDT 2008


Author: kris
Date: 2008-08-07 06:31:29 -0700 (Thu, 07 Aug 2008)
New Revision: 2544

Modified:
   pcbsd/trunk/PCInstall/selectnetserver.cpp
Log:

Fixed another bug with the network install possibly messing up the passed URL
from the server



Modified: pcbsd/trunk/PCInstall/selectnetserver.cpp
===================================================================
--- pcbsd/trunk/PCInstall/selectnetserver.cpp	2008-08-07 13:24:59 UTC (rev 2543)
+++ pcbsd/trunk/PCInstall/selectnetserver.cpp	2008-08-07 13:31:29 UTC (rev 2544)
@@ -22,7 +22,9 @@
         comboMirror->clear();
         while ( !file.atEnd() ) {
           tmp = file.readLine(); // line of text excluding '\n'
-          tmp.truncate(tmp.size() -1 );
+          if ( tmp.indexOf("\n") != -1 ) {
+            tmp.truncate(tmp.size() -1 );
+          } 
           comboMirror->insertItem(tmp);
         }
       file.close();



More information about the Commits mailing list