diff options
author | ChulHo Song <ch81.song@samsung.com> | 2016-01-04 15:06:07 +0900 |
---|---|---|
committer | ChulHo Song <ch81.song@samsung.com> | 2016-01-04 15:06:07 +0900 |
commit | 2461d6a62e61a4b9e4b4135dd2d24f48316ab1fd (patch) | |
tree | a2c21456d448aad8835230ed61b66af477582561 | |
parent | cba7aa024c633a83c858455266cc05a9f1d3e37f (diff) | |
download | device-manager-plugin-emul-2461d6a62e61a4b9e4b4135dd2d24f48316ab1fd.tar.gz device-manager-plugin-emul-2461d6a62e61a4b9e4b4135dd2d24f48316ab1fd.tar.bz2 device-manager-plugin-emul-2461d6a62e61a4b9e4b4135dd2d24f48316ab1fd.zip |
fix some defectssubmit/tizen_ivi/20160217.000001submit/tizen_ivi/20160217.000000submit/tizen_common/20160218.142243submit/tizen/20160104.090452accepted/tizen/wearable/20160104.225059accepted/tizen/tv/20160104.225037accepted/tizen/mobile/20160104.225021accepted/tizen/ivi/20160218.022823
Change-Id: I7439b61a60a6e3d5eecf0c7524c7e8ef62792986
Signed-off-by: ChulHo Song <ch81.song@samsung.com>
-rw-r--r-- | src/device_manager_plugin_emul.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device_manager_plugin_emul.c b/src/device_manager_plugin_emul.c index 53a8550..3bf91fa 100644 --- a/src/device_manager_plugin_emul.c +++ b/src/device_manager_plugin_emul.c @@ -261,7 +261,7 @@ static int OEM_sys_display_info(struct display_info *disp_info) break; } - if (!strcmp(".", dent->d_name) || !strcmp("..", dent->d_name)) + if (!strncmp(".", dent->d_name, sizeof(".")) || !strncmp("..", dent->d_name, sizeof(".."))) continue; else { strncpy(disp_info[index].bl_name, dent->d_name, sizeof(disp_info[index].bl_name) - 1); @@ -284,7 +284,7 @@ static int OEM_sys_display_info(struct display_info *disp_info) break; } - if (!strcmp(".", dent->d_name) || !strcmp("..", dent->d_name)) + if (!strncmp(".", dent->d_name, sizeof(".")) || !strncmp("..", dent->d_name, sizeof(".."))) continue; else { strncpy(disp_info[index].lcd_name, dent->d_name, sizeof(disp_info[index].lcd_name) - 1); |