projects
/
platform
/
upstream
/
enlightenment.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5b7277
)
e_msg: added explicit type conversion to limit length
89/283189/2
author
Junseok Kim
<juns.kim@samsung.com>
Mon, 17 Oct 2022 06:03:42 +0000
(15:03 +0900)
committer
JunSeok Kim
<juns.kim@samsung.com>
Thu, 20 Oct 2022 12:57:50 +0000
(12:57 +0000)
Change-Id: I5f448d8e88b385de627b6c4c782da5ae7cd41222
src/bin/e_msg.c
patch
|
blob
|
history
diff --git
a/src/bin/e_msg.c
b/src/bin/e_msg.c
index
64ef44b
..
f51ca4a
100644
(file)
--- a/
src/bin/e_msg.c
+++ b/
src/bin/e_msg.c
@@
-82,8
+82,8
@@
e_msg_send(const char *name, const char *info, int val, E_Object *obj, void *msg
name_len = info_len = 0;
size = sizeof(E_Msg_Event);
- if (name) name_len = strlen(name) + 1;
- if (info) info_len = strlen(info) + 1;
+ if (name) name_len =
(unsigned int)
strlen(name) + 1;
+ if (info) info_len =
(unsigned int)
strlen(info) + 1;
ev = malloc(size + name_len + info_len);
if (!ev) return;
pos = size;