Skip to content
This repository has been archived by the owner on Nov 18, 2023. It is now read-only.

修改两处代码 #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

修改两处代码 #3

wants to merge 2 commits into from

Conversation

charlessoft
Copy link
Collaborator

  1. m_opened 初始化为false,不然运行时候m_opened 随机返回true
  2. 调整读zip方式, 读内容长度>分配长度,咱们调用方式没有错误, 对比了长度不一样的内容只是从源文件某处开始多读了出来,我尝试其他的zip文件.用同样代码(也尝试其他一些flag),也有一些文件会出现读内容长度>分配长度,有些是正常.

修改了strlen(Content)代码,主要是遇到\0,长度计算错误, 所以我直接把读到内容append fileContent中.
修改了一次性分配文件长度内存,改成for循环每次读入100字节.

@charlessoft charlessoft changed the title 老大,我修改两处代码 修改两处代码 Oct 30, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant