diff options
author | Yunjin Lee <yunjin-.lee@samsung.com> | 2020-04-27 14:30:03 +0900 |
---|---|---|
committer | Yunjin Lee <yunjin-.lee@samsung.com> | 2020-04-27 14:44:09 +0900 |
commit | b93107824d7b6a552b569c0cd459ab2280d5cab1 (patch) | |
tree | 62bdef4ade04b003d9f4f560a95b0a9a2750781f /ui | |
parent | d048e13eb5a6cf8b20308ac9a93d8b3eec097a03 (diff) | |
download | askuser-popup-b93107824d7b6a552b569c0cd459ab2280d5cab1.tar.gz askuser-popup-b93107824d7b6a552b569c0cd459ab2280d5cab1.tar.bz2 askuser-popup-b93107824d7b6a552b569c0cd459ab2280d5cab1.zip |
Fix app event handler size
- Wrong event handler size can cause stack smashing
Change-Id: I8ebfe8354f7063b6aef2cb2269afa0eb90aee90d
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/src/app_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/src/app_main.c b/ui/src/app_main.c index 4845a8e..2fb8e92 100644 --- a/ui/src/app_main.c +++ b/ui/src/app_main.c @@ -233,9 +233,9 @@ int main(int argc, char *argv[]) init_app_data(&ad); ui_app_lifecycle_callback_s event_callback = {0, }; - app_event_handler_h handlers[2] = {NULL, }; + app_event_handler_h handler = NULL; - ui_app_add_event_handler(&handlers[APP_EVENT_LANGUAGE_CHANGED], APP_EVENT_LANGUAGE_CHANGED, ui_app_lang_changed, &ad); + ui_app_add_event_handler(&handler, APP_EVENT_LANGUAGE_CHANGED, ui_app_lang_changed, &ad); event_callback.create = app_create; event_callback.terminate = app_terminate; |