geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickmcgu...@apache.org
Subject svn commit: r657022 - /geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/org/apache/geronimo/mail/util/QuotedPrintableDecoderStream.java
Date Fri, 16 May 2008 11:38:31 GMT
Author: rickmcguire
Date: Fri May 16 04:38:31 2008
New Revision: 657022

URL: http://svn.apache.org/viewvc?rev=657022&view=rev
Log:
GERONIMO-4022 QuotedPrintableDecoderStream read should return -1 when no more data

Patch provided by aaron pieper


Modified:
    geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/org/apache/geronimo/mail/util/QuotedPrintableDecoderStream.java

Modified: geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/org/apache/geronimo/mail/util/QuotedPrintableDecoderStream.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/org/apache/geronimo/mail/util/QuotedPrintableDecoderStream.java?rev=657022&r1=657021&r2=657022&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/org/apache/geronimo/mail/util/QuotedPrintableDecoderStream.java
(original)
+++ geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/org/apache/geronimo/mail/util/QuotedPrintableDecoderStream.java
Fri May 16 04:38:31 2008
@@ -79,7 +79,7 @@
         for (int i = 0; i < length; i++) {
             int ch = decoder.decode(in);
             if (ch == -1) {
-                return i;
+                return i == 0 ? -1 : i;
             }
             buffer[offset + i] = (byte)ch;
         }



Mime
View raw message