浏览代码

No need to have +1 on sizeof path prefix

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Joachim Nilsson 6 年前
父节点
当前提交
c9b79b5d85
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/light.h

+ 1
- 1
src/light.h 查看文件

61
 
61
 
62
 typedef struct {
62
 typedef struct {
63
 	/* Cache file prefix */
63
 	/* Cache file prefix */
64
-	char               prefix[NAME_MAX + 1];
64
+	char               prefix[NAME_MAX];
65
 
65
 
66
 	/* Which controller to use */
66
 	/* Which controller to use */
67
 	light_ctrl_mode_t  ctrl;
67
 	light_ctrl_mode_t  ctrl;