commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mart...@apache.org
Subject svn commit: r240164 - /jakarta/commons/proper/fileupload/trunk/src/java/org/apache/commons/fileupload/MultipartStream.java
Date Fri, 26 Aug 2005 05:11:13 GMT
Author: martinc
Date: Thu Aug 25 22:11:10 2005
New Revision: 240164

URL: http://svn.apache.org/viewcvs?rev=240164&view=rev
Log:
Avoid magic number. Reported by Jian Chen. Thanks!

Modified:
    jakarta/commons/proper/fileupload/trunk/src/java/org/apache/commons/fileupload/MultipartStream.java

Modified: jakarta/commons/proper/fileupload/trunk/src/java/org/apache/commons/fileupload/MultipartStream.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/fileupload/trunk/src/java/org/apache/commons/fileupload/MultipartStream.java?rev=240164&r1=240163&r2=240164&view=diff
==============================================================================
--- jakarta/commons/proper/fileupload/trunk/src/java/org/apache/commons/fileupload/MultipartStream.java
(original)
+++ jakarta/commons/proper/fileupload/trunk/src/java/org/apache/commons/fileupload/MultipartStream.java
Thu Aug 25 22:11:10 2005
@@ -427,7 +427,7 @@
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
         int sizeMax = HEADER_PART_SIZE_MAX;
         int size = 0;
-        while (i < 4) {
+        while (i < HEADER_SEPARATOR.length) {
             try {
                 b[0] = readByte();
             } catch (IOException e) {



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message