diff options
author | Rene Stoeckel <[email protected]> | 2005-12-16 21:19:42 +0000 |
---|---|---|
committer | Rene Stoeckel <[email protected]> | 2005-12-16 21:19:42 +0000 |
commit | fbd01d63a6273c04c5016a614b8334ea1b000c1a (patch) | |
tree | 79a32965b86b7d3e5590b93b689f5e790c6904ec /src | |
parent | 5b715313e8e57bccda74548a04edffd61c17477c (diff) |
bugfix
Diffstat (limited to 'src')
-rw-r--r-- | src/jake2/util/Lib.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jake2/util/Lib.java b/src/jake2/util/Lib.java index 6b4f107..48c0483 100644 --- a/src/jake2/util/Lib.java +++ b/src/jake2/util/Lib.java @@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ // Created on 09.12.2003 by RST. -// $Id: Lib.java,v 1.15 2005-12-13 00:03:41 salomo Exp $ +// $Id: Lib.java,v 1.16 2005-12-16 21:19:42 salomo Exp $ package jake2.util; @@ -318,7 +318,7 @@ public class Lib { public static String CtoJava(byte[] old, int offset, int maxLenght) { if (old.length == 0 || old[0] == 0) return ""; int i; - for (i = offset; old[i] != 0 && (i - offset) < maxLenght; i++); + for (i = offset; (i - offset) < maxLenght && old[i] != 0; i++); return new String(old, offset, i - offset); } |