cnbillow / freecms

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

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

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 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 8 years ago
此问题已在1.5版本修复

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