board: increased the memory size because of unterminated string occurred. 64/154564/1
authorSegwon <segwon.han@samsung.com>
Tue, 10 Oct 2017 12:25:12 +0000 (21:25 +0900)
committerSegwon <segwon.han@samsung.com>
Tue, 10 Oct 2017 12:25:12 +0000 (21:25 +0900)
Change-Id: I5839e07b77eda7cab197248ba146bc9226573c5c
Signed-off-by: Segwon <segwon.han@samsung.com>
src/daemon/peripheral_bus_board.c

index cb1720b..9750fe0 100644 (file)
@@ -120,7 +120,7 @@ static int peripheral_bus_board_ini_get_nkeys(dictionary *dict)
 static int peripheral_bus_board_get_type(void)
 {
        int fd, i, ret = 0;
-       char str_buf[STR_BUF_MAX] = {0};
+       char str_buf[STR_BUF_MAX + 1] = {0};
        int type = PB_BOARD_UNKNOWN;
 
        fd = open(BOARD_DEVICE_TREE, O_RDONLY);