From 6813b19565277ac4102d3b97bc0e5039ad1cc5f5 Mon Sep 17 00:00:00 2001 From: "changyu.choi" Date: Thu, 25 Jun 2020 14:35:49 +0900 Subject: [PATCH] Change size method to 'sizeof' Change-Id: I22ae01445be913c5c4b8c890bd899bad56f71f1a Signed-off-by: changyu-choi --- src/common/src/launchpad_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/src/launchpad_common.c b/src/common/src/launchpad_common.c index 1521634..3c61837 100644 --- a/src/common/src/launchpad_common.c +++ b/src/common/src/launchpad_common.c @@ -603,10 +603,10 @@ static bool __validate_bundle_key(const char *key) if (!key) return false; - if (!strncmp(key, "__AUL_", strlen("__AUL_"))) + if (!strncmp(key, "__AUL_", sizeof("__AUL_"))) return false; - if (!strncmp(key, "__APP_SVC_", strlen("__APP_SVC_"))) + if (!strncmp(key, "__APP_SVC_", sizeof("__APP_SVC_"))) return false; return true; -- 2.7.4