summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/server.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/noncore/settings/aqpkg/server.cpp b/noncore/settings/aqpkg/server.cpp
index 06b0863..d4fa439 100644
--- a/noncore/settings/aqpkg/server.cpp
+++ b/noncore/settings/aqpkg/server.cpp
@@ -165,13 +165,12 @@ void Server :: readPackageFile( Server *local, bool clearAll, bool installingToR
{
in.getline( line, 1000 );
if ( in.eof() )
- break;
+ continue;
k[0] = '\0';
v[0] = '\0';
- if ( sscanf( line, "%[^:]: %[^\n]", k, v ) < 2 )
- break;
+ sscanf( line, "%[^:]: %[^\n]", k, v );
key = k;
value = v;