From: changyu.choi Date: Thu, 25 Jun 2020 05:35:49 +0000 (+0900) Subject: Change size method to 'sizeof' X-Git-Tag: accepted/tizen/unified/20200701.032316~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6813b19565277ac4102d3b97bc0e5039ad1cc5f5;p=platform%2Fcore%2Fappfw%2Flaunchpad.git Change size method to 'sizeof' Change-Id: I22ae01445be913c5c4b8c890bd899bad56f71f1a Signed-off-by: changyu-choi --- 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;