You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2019/06/04 07:18:35 UTC
[royale-compiler] branch release_practice updated: another eof fix
for CRLF filter
This is an automated email from the ASF dual-hosted git repository.
aharui pushed a commit to branch release_practice
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git
The following commit(s) were added to refs/heads/release_practice by this push:
new 4bc95fe another eof fix for CRLF filter
4bc95fe is described below
commit 4bc95fe6e5021a34d1c500cfbc9a9ae3c308df13
Author: Alex Harui <ah...@apache.org>
AuthorDate: Tue Jun 4 00:18:22 2019 -0700
another eof fix for CRLF filter
---
.../java/org/apache/royale/compiler/filespecs/FileSpecification.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/compiler-common/src/main/java/org/apache/royale/compiler/filespecs/FileSpecification.java b/compiler-common/src/main/java/org/apache/royale/compiler/filespecs/FileSpecification.java
index 52be73c..91dd053 100644
--- a/compiler-common/src/main/java/org/apache/royale/compiler/filespecs/FileSpecification.java
+++ b/compiler-common/src/main/java/org/apache/royale/compiler/filespecs/FileSpecification.java
@@ -175,7 +175,7 @@ public class FileSpecification extends BaseFileSpecification implements IBinaryF
return -1;
int j = 0;
- for (int i = 0; i < n; i++)
+ for (int i = 0; i < retval; i++)
{
byte c = temp[i];
if (c == '\r')
@@ -183,7 +183,7 @@ public class FileSpecification extends BaseFileSpecification implements IBinaryF
else
b[j++] = c;
}
- while (j < n)
+ while (j < retval)
{
int extra = super.read(b, j, 1);
if (extra == -1)