summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChulHo Song <ch81.song@samsung.com>2016-01-04 15:06:07 +0900
committerChulHo Song <ch81.song@samsung.com>2016-01-04 15:06:07 +0900
commit2461d6a62e61a4b9e4b4135dd2d24f48316ab1fd (patch)
treea2c21456d448aad8835230ed61b66af477582561
parentcba7aa024c633a83c858455266cc05a9f1d3e37f (diff)
downloaddevice-manager-plugin-emul-2461d6a62e61a4b9e4b4135dd2d24f48316ab1fd.tar.gz
device-manager-plugin-emul-2461d6a62e61a4b9e4b4135dd2d24f48316ab1fd.tar.bz2
device-manager-plugin-emul-2461d6a62e61a4b9e4b4135dd2d24f48316ab1fd.zip
Change-Id: I7439b61a60a6e3d5eecf0c7524c7e8ef62792986 Signed-off-by: ChulHo Song <ch81.song@samsung.com>
-rw-r--r--src/device_manager_plugin_emul.c4
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);