projects
/
platform
/
core
/
appfw
/
event-system.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f8c93f
)
Fix static analysis
06/314306/1
author
Inkyun Kil
<inkyun.kil@samsung.com>
Wed, 10 Jul 2024 04:54:02 +0000
(13:54 +0900)
committer
Inkyun Kil
<inkyun.kil@samsung.com>
Wed, 10 Jul 2024 04:54:02 +0000
(13:54 +0900)
- LIB.INSECURE_STRNCMP
Change-Id: Idaea85bfb404f83a4b31f53a169dcf682b276697
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
src/modules/dbus_event/dbus_event_module.cc
patch
|
blob
|
history
diff --git
a/src/modules/dbus_event/dbus_event_module.cc
b/src/modules/dbus_event/dbus_event_module.cc
index f4666f64a8900b140af38aae256835c3aa1990aa..04d19dc1794fb8b1d8a4f79ce581e998c1fe3903 100644
(file)
--- a/
src/modules/dbus_event/dbus_event_module.cc
+++ b/
src/modules/dbus_event/dbus_event_module.cc
@@
-1320,7
+1320,7
@@
int DbusEventModule::PkgmgrEventCb(uid_t target_uid, int req_id,
_D("target_uid(%d), req_id(%d), pkg_type(%s), pkgid(%s), key(%s), val(%s)",
target_uid, req_id, pkg_type, pkgid, key, val);
- if (str
ncmp(key, "start", strlen(key)
) == 0) {
+ if (str
cmp(key, "start"
) == 0) {
if (strcmp(val, "install") == 0) {
_D("install start");
obj->pkg_event_type_ = INSTALL;