[UTC][webkit2][NON-ACR][fixup! svace issue]
authorsihoons.yang <sihoons.yang@samsung.com>
Wed, 31 Aug 2016 08:50:36 +0000 (17:50 +0900)
committersihoons.yang <sihoons.yang@samsung.com>
Wed, 31 Aug 2016 08:54:51 +0000 (17:54 +0900)
origin patch: http://165.213.149.170/gerrit/#/c/117027/

Change-Id: Id06195657eeb7a0a343b5a52c30b8b5c269c8c00
Signed-off-by: sihoons.yang <sihoons.yang@samsung.com>
src/utc/webkit2/tct-autofill-profile.c

index 6a06e18..23447fb 100755 (executable)
@@ -24,7 +24,7 @@ Ewk_Autofill_Profile* getTestEwkAutofillProfile()
         return NULL;
 
     char id[10];
-    snprintf(id, strlen(id), "%d", TEST_AUTOFILL_PROFILE_ID);
+    snprintf(id, sizeof(id)/sizeof(id[0]), "%d", TEST_AUTOFILL_PROFILE_ID);
     ewk_autofill_profile_data_set(profile, EWK_PROFILE_ID, id);
     ewk_autofill_profile_data_set(profile, EWK_PROFILE_NAME, TEST_AUTOFILL_PROFILE_NAME);
     ewk_autofill_profile_data_set(profile, EWK_PROFILE_COMPANY, TEST_AUTOFILL_PROFILE_COMPANY);