Improve `check` target; max index line length = 8K

parent a49cd1b5
......@@ -22,6 +22,7 @@ clean:
rm libparcel.so*
rm Package.o
rm Repository.o
make -C test clean
check: libparcel.so
make -C test
make -C test check
......@@ -7,8 +7,8 @@ namespace Parcel {
Repository::Repository(std::istream& from_index) {
string nextpkg;
// libreoffice-common p: line is current record with 4241 bytes
char nextline[16384];
while(from_index.getline(nextline, 16384)) {
char nextline[8192];
while(from_index.getline(nextline, 8192)) {
if(nextline[0] == '\0') {
// Spurious empty line at beginning / end of index?
if(nextpkg.length() == 0) { continue; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment