← Back to team overview

gnome-split-team team mailing list archive

[Branch ~respawneral/gnome-split/mainline] Rev 242: Fix split for files of several Gio.

 

------------------------------------------------------------
revno: 242
fixes bug(s): https://launchpad.net/bugs/674990
committer: Guillaume Mazoyer <respawneral@xxxxxxxxx>
branch nick: gnome-split
timestamp: Sun 2010-11-14 01:25:37 +0100
message:
  Fix split for files of several Gio.
modified:
  src/org/gnome/split/core/splitter/DefaultSplitEngine.java


--
lp:gnome-split
https://code.launchpad.net/~respawneral/gnome-split/mainline

Your team GNOME Split developers is subscribed to branch lp:gnome-split.
To unsubscribe from this branch go to https://code.launchpad.net/~respawneral/gnome-split/mainline/+edit-subscription
=== modified file 'src/org/gnome/split/core/splitter/DefaultSplitEngine.java'
--- src/org/gnome/split/core/splitter/DefaultSplitEngine.java	2010-11-07 20:02:45 +0000
+++ src/org/gnome/split/core/splitter/DefaultSplitEngine.java	2010-11-14 00:25:37 +0000
@@ -224,7 +224,7 @@
      */
     protected boolean writeChunk(GRandomAccessFile split, GRandomAccessFile chunk) throws IOException {
         // Needed variables to know when the chunk writing must be stopped
-        int read = 0;
+        long read = 0;
         byte[] buffer = null;
 
         while (read < size) {