summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJihoon Jung <jh8801.jung@samsung.com>2020-01-08 14:01:03 (GMT)
committerJihoon Jung <jh8801.jung@samsung.com>2020-01-08 14:01:52 (GMT)
commitdc7d00088267522e4b2f513f88d0a757c5f9fb4f (patch)
tree0798d6cca61a3ea60a413531aa506ede4dbd1aa0
parent82b8f5f467f0ede273bd1aef9c16bc42250fdd65 (diff)
downloaduser-awareness-accepted/tizen_unified.zip
user-awareness-accepted/tizen_unified.tar.gz
user-awareness-accepted/tizen_unified.tar.bz2
Change-Id: Ic14f816d544168ad8ca558ec5d7731178841bf3f Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
-rw-r--r--test/uat-payload.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/uat-payload.c b/test/uat-payload.c
index acfb56a..65f3d83 100644
--- a/test/uat-payload.c
+++ b/test/uat-payload.c
@@ -61,13 +61,13 @@ static void update_payload_info(void)
ret = ua_payload_get_primary_key(g_payload_h, &primary_key);
if (UA_ERROR_NONE == ret) {
memset(g_payload_primary_key, 0, MENU_DATA_SIZE + 1);
- memcpy(g_payload_primary_key, &primary_key, MENU_DATA_SIZE);
+ memcpy(g_payload_primary_key, &primary_key, sizeof(primary_key));
}
ret = ua_payload_get_secondary_key(g_payload_h, &secondary_key);
if (UA_ERROR_NONE == ret) {
memset(g_payload_secondary_key, 0, MENU_DATA_SIZE + 1);
- memcpy(g_payload_secondary_key, &secondary_key, MENU_DATA_SIZE);
+ memcpy(g_payload_secondary_key, &secondary_key, sizeof(secondary_key));
}
ret = ua_payload_get_device_uid(g_payload_h, &device_uid);
@@ -79,7 +79,7 @@ static void update_payload_info(void)
ret = ua_payload_get_device_icon(g_payload_h, &device_icon);
if (UA_ERROR_NONE == ret) {
memset(g_payload_device_icon, 0, MENU_DATA_SIZE + 1);
- memcpy(g_payload_device_icon, &device_icon, MENU_DATA_SIZE);
+ memcpy(g_payload_device_icon, &device_icon, sizeof(device_icon));
}
}