goto FAIL;
}
- while ((len = fread(buf, sizeof(char), sizeof(buf), in)) != 0)
+ while ((len = fread(buf, sizeof(char), COPY_BUF_SIZE, in)) != 0)
{
if (fwrite(buf, sizeof(char), len, out) == 0)
{
if (ret < 0)
{
- DEBUG_ERROR("install is failed \n", destdir);
+ DEBUG_ERROR("install is failed to [%s]\n", destdir);
goto FAIL;
}