ソースを参照

No need to have +1 on sizeof path prefix

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Joachim Nilsson 7 年 前
コミット
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;