From d65ec2d34e572d83179ef46b60078e8d4b2c434f Mon Sep 17 00:00:00 2001 From: Segwon Date: Tue, 10 Oct 2017 21:25:12 +0900 Subject: [PATCH] board: increased the memory size because of unterminated string occurred. Change-Id: I5839e07b77eda7cab197248ba146bc9226573c5c Signed-off-by: Segwon --- src/daemon/peripheral_bus_board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daemon/peripheral_bus_board.c b/src/daemon/peripheral_bus_board.c index cb1720b..9750fe0 100644 --- a/src/daemon/peripheral_bus_board.c +++ b/src/daemon/peripheral_bus_board.c @@ -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); -- 2.7.4