Skip to content

同步资源文件时,目标文件比源文件要大 #12

Description

@GoogleCodeExporter
涉及代码:src/cn/freeteam/util/FileUtil.java:227-229
while (in.read(buffer) > 0) {
    out.write(buffer, 0, read);
}
建议解决方案:
int read = 0;
while ((read = in.read(buffer)) > 0) {
    out.write(buffer, 0, read);
}

Original issue reported on code.google.com by zhengxin...@gmail.com on 28 Aug 2013 at 1:47

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions