fix a wrong error log message
[platform/core/uifw/download-fonts-service.git] / pkgmgr_font / src / font_service_register.c
index e78d85d..1dd1173 100755 (executable)
@@ -225,7 +225,7 @@ static int copy_file(const char *srcpath, const char *destpath) {
                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)
                {
@@ -478,7 +478,7 @@ static int do_install(const char *parent, const char *appid, const char *rootpat
 
        if (ret < 0)
        {
-               DEBUG_ERROR("install is failed \n", destdir);
+               DEBUG_ERROR("install is failed to [%s]\n", destdir);
                goto FAIL;
        }