modify bug (protex)
authorjihye kim <jihye1128.kim@samsung.com>
Fri, 28 Dec 2012 07:23:08 +0000 (16:23 +0900)
committerjihye kim <jihye1128.kim@samsung.com>
Fri, 28 Dec 2012 07:23:08 +0000 (16:23 +0900)
packaging/device-manager-plugin-maru.spec
src/device_manager_io.c
src/device_manager_plugin_maru.c

index f9c0b7b072a035c392a6c22726222c2bc35eaf48..42d20e2363565650857e1ca62215450b74d4566d 100644 (file)
@@ -1,6 +1,6 @@
 Name:       device-manager-plugin-maru
 Summary:    device-manager-plugin-maru
-Version: 0.0.12
+Version: 0.0.13
 Release:    1
 Group:      TO_BE/FILLED_IN
 License:    TO_BE/FILLED_IN
index 3ae0420a50fa31dd3479cb7297df6cf4dc64c728..8b1d6585893c5f5b98c7b4b9f44e1376f36eadf1 100644 (file)
@@ -92,15 +92,15 @@ static int sys_read_buf(char *file, char *buf)
                return -ENOENT;
        }
 
-       r = read(fd, buf, BUFF_MAX);
+       r = read(fd, buf, BUFF_MAX - 1);
        if ((r >= 0) && (r < BUFF_MAX))
                buf[r] = '\0';
        else {
+               close(fd);
                return -EIO;
        }
 
        close(fd);
-
        return 0;
 }
 
index 2be0c414d522aa81be642a17b0353f2fa1f224d5..9f84998236e776fd51875670fb31732e87765415 100644 (file)
@@ -177,6 +177,8 @@ static int OEM_sys_display_info(struct display_info *disp_info)
                devmgr_log("lcd_name[%s]", disp_info[i].lcd_name);
 
        lcd_index = index;
+
+       return 0;
 }
 
 int OEM_sys_get_display_count(int *value)