liseryang / freecms

Automatically exported from code.google.com/p/freecms
1 stars 1 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
涉及代码: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

GoogleCodeExporter commented 9 years ago
此问题已在1.5版本修复

Original comment by chinafreeteam on 24 Sep 2013 at 12:57