remove improper sizeof use case for pointer 64/142464/1 accepted/tizen_4.0_unified accepted/tizen_5.0_unified tizen_4.0 tizen_5.0 accepted/tizen/4.0/unified/20170829.020230 accepted/tizen/5.0/unified/20181102.023507 accepted/tizen/unified/20170810.172521 submit/tizen/20170810.044648 submit/tizen_4.0/20170828.100004 submit/tizen_5.0/20181101.000005 tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m2_release
authorYoungbok Shin <youngb.shin@samsung.com>
Fri, 4 Aug 2017 03:25:52 +0000 (12:25 +0900)
committerYoungbok Shin <youngb.shin@samsung.com>
Fri, 4 Aug 2017 03:25:52 +0000 (12:25 +0900)
Change-Id: I041c4460a232f33118a08bc13a64683b587cf026

pkgmgr_font/src/font_service_register.c

index e78d85d..52a3ae6 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)
                {