summaryrefslogtreecommitdiff
authordrw <drw>2003-03-29 01:13:02 (UTC)
committer drw <drw>2003-03-29 01:13:02 (UTC)
commit22e941e4cbc9e8906287d1e352b66092c6a84c0d (patch) (side-by-side diff)
tree2704ea40f9ee926c2734eb25c7165852c024c136
parentf42edeac768082ec8d7716a17c82507496dd7b47 (diff)
downloadopie-22e941e4cbc9e8906287d1e352b66092c6a84c0d.zip
opie-22e941e4cbc9e8906287d1e352b66092c6a84c0d.tar.gz
opie-22e941e4cbc9e8906287d1e352b66092c6a84c0d.tar.bz2
Fix for reading feed's Package file works this time. However, this is temporary until I re-do this part of the code this weekend (don't like the way it works).
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/aqpkg/server.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/settings/aqpkg/server.cpp b/noncore/settings/aqpkg/server.cpp
index d4fa439..64a9c26 100644
--- a/noncore/settings/aqpkg/server.cpp
+++ b/noncore/settings/aqpkg/server.cpp
@@ -145,30 +145,30 @@ void Server :: readLocalIpks( Server *local )
}
void Server :: readPackageFile( Server *local, bool clearAll, bool installingToRoot, Destination *dest )
{
ifstream in( packageFile );
if ( !in.is_open() )
return;
- char line[1001];
+ char line[5001];
char k[21];
- char v[1001];
+ char v[5001];
QString key;
QString value;
if ( clearAll )
cleanUp();
Package *currPackage = 0;
bool newPackage = true;
do
{
- in.getline( line, 1000 );
+ in.getline( line, 5000 );
if ( in.eof() )
continue;
k[0] = '\0';
v[0] = '\0';
sscanf( line, "%[^:]: %[^\n]", k, v );