Changeset 14601


Ignore:
Timestamp:
2007-10-04T11:50:51+13:00 (17 years ago)
Author:
qq6
Message:

added a guide

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/remote/RemoteGreenstoneServer.java

    r14308 r14601  
    10831083    if (len >= 0) {
    10841084        String first_chunk = new String(buf, 0, len);
    1085         first_line = first_chunk.substring(0, ((first_chunk.indexOf("\n") != -1) ? first_chunk.indexOf("\n") : len));
    1086 
     1085        // first_line = first_chunk.substring(0, ((first_chunk.indexOf("\n") != -1) ? first_chunk.indexOf("\n") : len));
     1086        first_line = first_chunk.substring(0, ((first_chunk.indexOf("\n") != -1) ? first_chunk.indexOf("\n") : ((first_chunk.length()<len) ? first_chunk.length():len)));
    10871087        // Save the data to file
    10881088        FileOutputStream zip_fos = new FileOutputStream(file_path);
Note: See TracChangeset for help on using the changeset viewer.