fix some defects 70/56070/1 accepted/tizen/ivi/20160218.022823 accepted/tizen/mobile/20160104.225021 accepted/tizen/tv/20160104.225037 accepted/tizen/wearable/20160104.225059 submit/tizen/20160104.090452 submit/tizen_common/20160218.142243 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000001
authorChulHo Song <ch81.song@samsung.com>
Mon, 4 Jan 2016 06:06:07 +0000 (15:06 +0900)
committerChulHo Song <ch81.song@samsung.com>
Mon, 4 Jan 2016 06:06:07 +0000 (15:06 +0900)
Change-Id: I7439b61a60a6e3d5eecf0c7524c7e8ef62792986
Signed-off-by: ChulHo Song <ch81.song@samsung.com>
src/device_manager_plugin_emul.c

index 53a8550..3bf91fa 100644 (file)
@@ -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);